[issue36003] set better defaults for TCPServer options

Tal Einat report at bugs.python.org
Sat Jun 8 14:18:49 EDT 2019


Tal Einat <taleinat at gmail.com> added the comment:

I'm not sure that changing the default value for "reuse address" justifies breaking backwards compatibility like this. Admittedly, I'm not an expert on networking, so perhaps there's a good reason that I'm unaware of.

As for the queue size, passing 0 to socket.listen() does seem like a more reasonable default than the rather arbitrary value of 5. Again, it's arguable whether it's worth changing this given that it has been like this for a long time, but in this case at least the potential for harm seems negligible.

----------
nosy: +taleinat

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36003>
_______________________________________


More information about the Python-bugs-list mailing list