Why does SocketServer default allow_reuse_address = false?

Joshua J. Kugler joshua at eeinternet.com
Wed Mar 7 22:04:19 CET 2007


Chris Mellon wrote:
>> My problem (and the reason I set reuse to True) is this: if I have
>> connections active when I restart my service, upon restart, the socket
>> will
>> fail to bind because there is still a connection in a WAIT state.
> 
> This is just the way sockets work on your platform. How exactly
> sockets shut down, and the exact effect that SO_REUSEADDR varies from
> platform to platform. In your case, using it is probably reasonable.

Thank you.  Glad to know I've chosen the best solution for my situation.

j

-- 
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list