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 5ed7827 commit 0796e21Copy full SHA for 0796e21
Lib/test/test_ssl.py
@@ -2385,9 +2385,14 @@ def wrap_conn(self):
2385
self.server.conn_errors.append(str(e))
2386
if self.server.chatty:
2387
handle_error("\n server: bad connection attempt from " + repr(self.addr) + ":\n")
2388
- self.running = False
2389
- self.server.stop()
2390
- self.close()
+
+ # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
+ # Ignore spurious EPROTOTYPE returned by write() on macOS.
2391
+ # See also http://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
2392
+ if e.errno != errno.EPROTOTYPE and sys.platform != "darwin":
2393
+ self.running = False
2394
+ self.server.stop()
2395
+ self.close()
2396
return False
2397
else:
2398
self.server.shared_ciphers.append(self.sslconn.shared_ciphers())
0 commit comments