mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471)
This commit is contained in:
parent
458123bd18
commit
d9dbf49383
3 changed files with 9 additions and 1 deletions
|
@ -3863,6 +3863,7 @@ class NonBlockingTCPTests(ThreadedTCPSocketTest):
|
|||
read, write, err = select.select([self.serv], [], [])
|
||||
if self.serv in read:
|
||||
conn, addr = self.serv.accept()
|
||||
self.assertIsNone(conn.gettimeout())
|
||||
conn.close()
|
||||
else:
|
||||
self.fail("Error trying to do accept after select.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue