Message136430
| Author |
neologix |
| Recipients |
neologix, ryan003, victorpoluceno, vstinner |
| Date |
2011年05月21日.11:11:42 |
| SpamBayes Score |
4.311646e-08 |
| Marked as misclassified |
No |
| Message-id |
<1305976304.06.0.0730772252186.issue5715@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|
History
|
|---|
| 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 |
|