[issue35934] Add socket.bind_socket() utility function
Giampaolo Rodola'
report at bugs.python.org
Thu Feb 7 14:15:04 EST 2019
New submission from Giampaolo Rodola' <g.rodola at gmail.com>:
The main point of this patch is to automatize all the necessary tasks which are usually involved when creating a server socket, amongst which:
* determining the right family based on address, similarly to socket.create_connection()
* whether to use SO_REUSEADDR depending on the platform
* set AI_PASSIVE flag for getaddrinfo()
* set a more optimal default backlog
This is somewhat related to issue17561 which I prefer to leave pending for now (need to think about it more carefully). issue17561 is complementary to this one so it appears it can be integrated later (or never) without altering the base functionality implemented in here.
----------
components: Library (Lib)
messages: 335034
nosy: asvetlov, cheryl.sabella, giampaolo.rodola, jaraco, josiah.carlson, loewis, neologix, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Add socket.bind_socket() utility function
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35934>
_______________________________________
More information about the Python-bugs-list
mailing list