Why does SocketServer default allow_reuse_address = false?
Facundo Batista
facundo at taniquetil.com.ar
Mon Mar 5 10:43:35 EST 2007
Joshua J. Kugler wrote:
> Considering that UNIX Network Programming, Vol 1 (by W. Richard Stevens)
> recommends "_All_ TCP servers should specify [SO_REUSEADDR] to allow the
> server to be restarted [if there are clients connected]," and that
> self.allow_reuse_address = False makes restarting a server a pain if there
> were connected clients, why does SocketServer default allow_reuse_address
> to False? It's kind of bemusing to subclass ThreadingTCPServer just to
> change one variable that arguably should have been True in the first place.
>
> Is there some history to this of which I'm not aware? Is there a good
> reason for it to default to false?
If any, don't know. Searched in already reported bugs to check if
somebody already noticed.
If not, please consider to open a bug.
Regards,
--
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-list
mailing list