mirror of https://github.com/docker/docker-py.git
Merge 1eda4a6868 into 6e6a273573
This commit is contained in:
commit
f207fef7ea
|
|
@ -173,4 +173,5 @@ class ExecApiMixin:
|
||||||
if stream:
|
if stream:
|
||||||
return CancellableStream(output, res)
|
return CancellableStream(output, res)
|
||||||
else:
|
else:
|
||||||
|
res.close()
|
||||||
return output
|
return output
|
||||||
|
|
|
||||||
|
|
@ -69,3 +69,5 @@ class CancellableStream:
|
||||||
|
|
||||||
sock.shutdown(socket.SHUT_RDWR)
|
sock.shutdown(socket.SHUT_RDWR)
|
||||||
sock.close()
|
sock.close()
|
||||||
|
|
||||||
|
self._response.close()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue