[New-bugs-announce] [issue36003] set better defaults for TCPServer options

Giampaolo Rodola' report at bugs.python.org
Fri Feb 15 08:44:39 EST 2019


New submission from Giampaolo Rodola' <g.rodola at gmail.com>:

socketserver.TCPServer provides the following defaults:

allow_reuse_address = False
request_queue_size = 5

Proposal is to:
* have "allow_reuse_address = True" on POSIX in order to immediately reuse previous sockets which were bound on the same address and remained in TIME_WAIT state
* have "request_queue_size = None" so that it's up to socket.listen() to choose a default reasonable value (usually 128)

----------
components: Library (Lib)
keywords: easy
messages: 335612
nosy: asvetlov, giampaolo.rodola, neologix, yselivanov
priority: normal
severity: normal
status: open
title: set better defaults for TCPServer options
type: enhancement
versions: Python 3.8

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


More information about the New-bugs-announce mailing list