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 @@ -2443,9 +2443,14 @@ def wrap_conn(self):
2443
2443
self .server .conn_errors .append (str (e ))
2444
2444
if self .server .chatty :
2445
2445
handle_error ("\n server: bad connection attempt from " + repr (self .addr ) + ":\n " )
2446
- self .running = False
2447
- self .server .stop ()
2448
- self .close ()
2446
+
2447
+ # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
2448
+ # 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 ()
2449
2454
return False
2450
2455
else :
2451
2456
self .server .shared_ciphers .append (self .sslconn .shared_ciphers ())
You can’t perform that action at this time.
0 commit comments