mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Issue #21566: Make use of socket.listen() default backlog.
This commit is contained in:
parent
8518b79a8d
commit
6e20460dc6
18 changed files with 33 additions and 33 deletions
|
@ -24,7 +24,7 @@ else:
|
|||
def socketpair(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0):
|
||||
with socket.socket(family, type, proto) as l:
|
||||
l.bind((support.HOST, 0))
|
||||
l.listen(3)
|
||||
l.listen()
|
||||
c = socket.socket(family, type, proto)
|
||||
try:
|
||||
c.connect(l.getsockname())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue