New submission from Giampaolo Rodola' <g.rod...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35934> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com