Message103978
Thanks for your help. I'll close the listen socket.
Nevertheless I'd like to understand the check in sock_listen. The commit message is not very helpful, I agree, that's why I wrote this issue. 0 is a valid value, and I'd suggest two ways to handle this situation:
1. Always set backlog at least to 1 (like now), but make this explicit in the documentation (docs.python.org says "should be at least 1" which is not the same as "will be at least 1")
2. Allow backlog = 0 and make a note in the docs that the exact behaviour will be implementation/OS-specific.
In case (1) the hint to close the listen socket should also be added to the documentation. |
|
Date |
User |
Action |
Args |
2010-04-22 20:02:05 | Daniel.Evers | set | recipients:
+ Daniel.Evers, exarkun, tarek, neologix |
2010-04-22 20:02:04 | Daniel.Evers | set | messageid: <1271966524.61.0.5942977062.issue8498@psf.upfronthosting.co.za> |
2010-04-22 20:02:01 | Daniel.Evers | link | issue8498 messages |
2010-04-22 20:01:59 | Daniel.Evers | create | |
|