Files
integ/docker/python-docker/debian/bullseye/patches/0001-Update-client-close-socket.patch
pmp1 53e0b8e1e3 Update python-docker packages for Bullseye
Aligned the package layout with the concurrent Debian packaging
conventions. Relocated package files under 'debian/bullseye/' and removed legacy paths under 'debian/'.

Updated related build references to ensure compatibility with Bullseye.

Change-Id: I9fd810b4e05398b05276da729e0576bd4277845b
Signed-off-by: pmp1 <preetham.mp@windriver.com>
2025-11-18 23:14:14 -05:00

31 lines
1.0 KiB
Diff

From cbe001760e9893015b1576cba05ebce0938038e4 Mon Sep 17 00:00:00 2001
From: John Kung <john.kung@windriver.com>
Date: Wed, 7 Aug 2019 14:06:04 -0400
Subject: [PATCH 1/1] Update client close socket
---
docker/api/client.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/docker/api/client.py b/docker/api/client.py
index 13c292a..7df5eb1 100644
--- a/docker/api/client.py
+++ b/docker/api/client.py
@@ -411,8 +411,11 @@ class APIClient(
if stream:
return gen
else:
- # Wait for all the frames, concatenate them, and return the result
- return consume_socket_output(gen, demux=demux)
+ try:
+ # Wait for all the frames, concatenate them, and return the result
+ return consume_socket_output(gen, demux=demux)
+ finally:
+ response.close()
def _disable_socket_timeout(self, socket):
""" Depending on the combination of python version and whether we're
--
1.8.3.1