SystemRage / py-kms

KMS Server Emulator written in Python
The Unlicense
2.04k stars 618 forks source link

not support multiprocess use python2.6 #13

Closed phrasjong closed 5 years ago

phrasjong commented 5 years ago

I use it to develop multiprocess program, but i found in python2.6 use ForkingTcpServer has some problem, for example: the child process without next new request, the resource will in system to become zombie process if i use multiprocess client to request this server, that will cause so more resource wasted, how can I fix this? and the other problem is child process inherit parent socket, and i find python3.7 just allow SOCK_CLOEXEC ,how can i deal with this socket inherit issue?