Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,12 @@ def requests_session_with_retries(
|
|
41 |
backoff_factor=backoff_factor,
|
42 |
status_forcelist=status_forcelist,
|
43 |
)
|
44 |
-
adapter = HTTPAdapter(
|
|
|
|
|
|
|
|
|
|
|
45 |
session.mount("http://", adapter)
|
46 |
session.mount("https://", adapter)
|
47 |
return session
|
|
|
41 |
backoff_factor=backoff_factor,
|
42 |
status_forcelist=status_forcelist,
|
43 |
)
|
44 |
+
adapter = HTTPAdapter(
|
45 |
+
max_retries=retry,
|
46 |
+
pool_connections=1000,
|
47 |
+
pool_maxsize=10000,
|
48 |
+
pool_block=False
|
49 |
+
)
|
50 |
session.mount("http://", adapter)
|
51 |
session.mount("https://", adapter)
|
52 |
return session
|