accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471)

This commit is contained in:
Benjamin Peterson 2015-10-24 20:06:04 -07:00
parent 458123bd18
commit d9dbf49383
3 changed files with 9 additions and 1 deletions

View file

@ -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.")