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
|
@ -919,7 +919,7 @@ class SourceAddressTest(TestCase):
|
|||
self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.port = support.bind_port(self.serv)
|
||||
self.source_port = support.find_unused_port()
|
||||
self.serv.listen(5)
|
||||
self.serv.listen()
|
||||
self.conn = None
|
||||
|
||||
def tearDown(self):
|
||||
|
@ -951,7 +951,7 @@ class TimeoutTest(TestCase):
|
|||
def setUp(self):
|
||||
self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
TimeoutTest.PORT = support.bind_port(self.serv)
|
||||
self.serv.listen(5)
|
||||
self.serv.listen()
|
||||
|
||||
def tearDown(self):
|
||||
self.serv.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue