mirror of https://github.com/docker/docker-py.git
Fix cancellable streams on Windows clients + HTTPS transport
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
95ad903c35
commit
40711cb501
|
|
@ -57,6 +57,8 @@ class CancellableStream(object):
|
|||
|
||||
else:
|
||||
sock = sock_fp._sock
|
||||
if isinstance(sock, urllib3.contrib.pyopenssl.WrappedSocket):
|
||||
sock = sock.socket
|
||||
|
||||
sock.shutdown(socket.SHUT_RDWR)
|
||||
sock.close()
|
||||
|
|
|
|||
Loading…
Reference in New Issue