File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2385,9 +2385,14 @@ def wrap_conn(self):
2385
2385
self .server .conn_errors .append (str (e ))
2386
2386
if self .server .chatty :
2387
2387
handle_error ("\n server: bad connection attempt from " + repr (self .addr ) + ":\n " )
2388
- self .running = False
2389
- self .server .stop ()
2390
- self .close ()
2388
+
2389
+ # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
2390
+ # 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 ()
2391
2396
return False
2392
2397
else :
2393
2398
self .server .shared_ciphers .append (self .sslconn .shared_ciphers ())
You can’t perform that action at this time.
0 commit comments