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 @@ -2380,9 +2380,14 @@ def wrap_conn(self):
2380
2380
self .server .conn_errors .append (str (e ))
2381
2381
if self .server .chatty :
2382
2382
handle_error ("\n server: bad connection attempt from " + repr (self .addr ) + ":\n " )
2383
- self .running = False
2384
- self .server .stop ()
2385
- self .close ()
2383
+
2384
+ # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
2385
+ # Ignore spurious EPROTOTYPE returned by write() on macOS.
2386
+ # See also http://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/
2387
+ if e .errno != errno .EPROTOTYPE and sys .platform != "darwin" :
2388
+ self .running = False
2389
+ self .server .stop ()
2390
+ self .close ()
2386
2391
return False
2387
2392
else :
2388
2393
self .server .shared_ciphers .append (self .sslconn .shared_ciphers ())
You can’t perform that action at this time.
0 commit comments