@@ -268,9 +268,6 @@ def _resolve_ca_bundle() -> str | bool:
268268 "/etc/pki/tls/certs/ca-bundle.crt" ,
269269 "/etc/ssl/certs/ca-certificates.crt" ,
270270 "/etc/ssl/ca-bundle.pem" ,
271- # Windows (Git for Windows, conda, etc.)
272- os .path .join (os .environ .get ("PROGRAMFILES" , "" ), "Git" , "mingw64" , "ssl" , "cert.pem" ),
273- os .path .join (os .environ .get ("PROGRAMFILES(X86)" , "" ), "Git" , "mingw64" , "ssl" , "cert.pem" ),
274271 os .path .join (os .environ .get ("CONDA_PREFIX" , "" ), "ssl" , "cert.pem" ),
275272 ):
276273 if cand and os .path .isfile (cand ):
@@ -1049,16 +1046,9 @@ def _shutdown_and_close(sock: _socket.socket) -> None:
10491046 after, so a new socket could reuse the fd number before the
10501047 reader observed the EOF. The grace sleep delays the fd release
10511048 so the woken thread can observe the EOF on the old fd first.
1052-
1053- On Windows, ``shutdown(SHUT_RDWR)`` on the client socket causes
1054- ``WinError 10058`` on the server side when it tries to read,
1055- producing noisy BrokenPipeError tracebacks. Skipping shutdown
1056- and just closing the fd is sufficient — Windows ``close()``
1057- triggers a TCP RST that reliably wakes the blocked read.
10581049 """
1059- if sys .platform != "win32" :
1060- with contextlib .suppress (OSError ):
1061- sock .shutdown (_socket .SHUT_RDWR )
1050+ with contextlib .suppress (OSError ):
1051+ sock .shutdown (_socket .SHUT_RDWR )
10621052 if sys .platform == "darwin" :
10631053 # macOS only; on Linux shutdown() alone reliably wakes the
10641054 # blocked recv (measured: <200ms unblock, no sleeps needed).
0 commit comments