[issue35934] Add socket.bind_socket() utility function

2019-02-11 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

Closing this out as duplicate. Will continue in issue35934.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
keywords: +patch
pull_requests: +11769

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
keywords: +patch, patch, patch
pull_requests: +11769, 11770, 11771

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
keywords: +patch, patch
pull_requests: +11769, 11770

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35934] Add socket.bind_socket() utility function

2019-02-07 Thread Giampaolo Rodola'


New submission from Giampaolo Rodola' :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com