Skip to content

Commit 40711cb

Browse files
committed
Fix cancellable streams on Windows clients + HTTPS transport
Signed-off-by: Joffrey F <[email protected]>
1 parent 95ad903 commit 40711cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/types/daemon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def close(self):
5757

5858
else:
5959
sock = sock_fp._sock
60+
if isinstance(sock, urllib3.contrib.pyopenssl.WrappedSocket):
61+
sock = sock.socket
6062

6163
sock.shutdown(socket.SHUT_RDWR)
6264
sock.close()

0 commit comments

Comments
 (0)