From bf31ea39894f5ec4ba81615afb25d366d23310f9 Mon Sep 17 00:00:00 2001 From: gravelBridge Date: Sat, 6 May 2023 12:28:01 -0700 Subject: [PATCH 1/2] Fix Docker hanging Fixes the docker library hanging issue --- vcr/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/patch.py b/vcr/patch.py index a283287f..72845d96 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -234,7 +234,7 @@ def patched_get_conn(pool, timeout=None): # used connections (which might actually be of a different # class) around. This while loop will terminate because # eventually the pool will run out of connections. - while not isinstance(connection, connection_class): + while not connection.__module__.startswith("docker") and snot isinstance(connection, connection_class): connection = get_conn(pool, timeout) return connection From 2f6fa05ae3518b1c0e92e63c3d12ecf5cf82cd48 Mon Sep 17 00:00:00 2001 From: gravelBridge Date: Sat, 6 May 2023 12:32:17 -0700 Subject: [PATCH 2/2] Fix typo --- vcr/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/patch.py b/vcr/patch.py index 72845d96..6d0754d2 100644 --- a/vcr/patch.py +++ b/vcr/patch.py @@ -234,7 +234,7 @@ def patched_get_conn(pool, timeout=None): # used connections (which might actually be of a different # class) around. This while loop will terminate because # eventually the pool will run out of connections. - while not connection.__module__.startswith("docker") and snot isinstance(connection, connection_class): + while not connection.__module__.startswith("docker") and not isinstance(connection, connection_class): connection = get_conn(pool, timeout) return connection