Preforked server in Python
- c o v e n t r y -
coventry at removethisandallhyphens-o-n-e.net
Mon Jul 1 00:27:57 EDT 2002
Yes, if forked children are true children of the parent (PPID), socket
descriptors can be copied from one to the other like a file-descriptor,
on linux, and on windows, as an object handle...
it gets ugly, but it should be possible -
shared memory might be the easiest way to handle this, though.
François Pinard wrote:
> [rayed]
>
>
>>I am looking for module similar to SocketServer that prefork chlidren instead
>>of forking on each request.
>>
>
> I wonder. Is there a way to transmit opened sockets to pre-forked children?
>
>
More information about the Python-list
mailing list