yangtb24 commited on
Commit
cbc7abf
·
verified ·
1 Parent(s): 7fcc6aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(max_retries=retry)
 
 
 
 
 
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