From 56d3229ee5728c4f720ffcb11556acc09fc7ade4 Mon Sep 17 00:00:00 2001
From: Emanuele Aina <emanuele.aina@collabora.com>
Date: Fri, 9 Jul 2021 01:29:27 +0200
Subject: [PATCH] test_urls: Block waiting for connections in the pool

Avoid `Pool is closed` exceptions.

Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
---
 scripts/test_urls.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/test_urls.py b/scripts/test_urls.py
index 6abedea71..41f6a02c6 100755
--- a/scripts/test_urls.py
+++ b/scripts/test_urls.py
@@ -85,7 +85,7 @@ headers={
     }
 
 session = requests.Session()
-adapter = requests.adapters.HTTPAdapter(max_retries=3)
+adapter = requests.adapters.HTTPAdapter(max_retries=3, pool_block=True)
 session.mount('http://', adapter)
 session.mount('https://', adapter)
 
-- 
GitLab