mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +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
|
@ -2543,7 +2543,7 @@ class _TestPicklingConnections(BaseTestCase):
|
|||
|
||||
l = socket.socket()
|
||||
l.bind((test.support.HOST, 0))
|
||||
l.listen(1)
|
||||
l.listen()
|
||||
conn.send(l.getsockname())
|
||||
new_conn, addr = l.accept()
|
||||
conn.send(new_conn)
|
||||
|
@ -3190,7 +3190,7 @@ class TestWait(unittest.TestCase):
|
|||
from multiprocessing.connection import wait
|
||||
l = socket.socket()
|
||||
l.bind((test.support.HOST, 0))
|
||||
l.listen(4)
|
||||
l.listen()
|
||||
addr = l.getsockname()
|
||||
readers = []
|
||||
procs = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue