Message136430
Thanks for reporting this, the current behaviour is clearly wrong. The child process doesn't need to - and shouldn't - inherit the server socket.
The custom idiom when writting such code is to close the new socket (well, in TCP) in the parent process, and close the server socket in the child process.
That's what the attached patch does.
Since I really doubt anyone using socketserver ever used the server's socket from the handler, this shouldn't be a problem for existing code (and the server's socket was never documented to be usable from the request handler). |
|
Date |
User |
Action |
Args |
2011-05-21 11:11:44 | neologix | set | recipients:
+ neologix, vstinner, ryan003, victorpoluceno |
2011-05-21 11:11:44 | neologix | set | messageid: <1305976304.06.0.0730772252186.issue5715@psf.upfronthosting.co.za> |
2011-05-21 11:11:43 | neologix | link | issue5715 messages |
2011-05-21 11:11:43 | neologix | create | |
|