Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c1ae09 commit b5a52eeCopy full SHA for b5a52ee
1 file changed
Lib/test/test_ssl.py
@@ -2443,9 +2443,14 @@ def wrap_conn(self):
2443
self.server.conn_errors.append(str(e))
2444
if self.server.chatty:
2445
handle_error("\n server: bad connection attempt from " + repr(self.addr) + ":\n")
2446
- self.running = False
2447
- self.server.stop()
2448
- self.close()
+
+ # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
+ # Ignore spurious EPROTOTYPE returned by write() on macOS.
2449
+ # See also http://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
2450
+ if e.errno != errno.EPROTOTYPE and sys.platform != "darwin":
2451
+ self.running = False
2452
+ self.server.stop()
2453
+ self.close()
2454
return False
2455
else:
2456
self.server.shared_ciphers.append(self.sslconn.shared_ciphers())
0 commit comments