Skip to content

Commit 4c0b284

Browse files
committed
Allow setting pool_maxsize without retries
1 parent 8041c64 commit 4c0b284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reportportal_client/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self,
182182
log_batch_size=20,
183183
is_skipped_an_issue=True,
184184
verify_ssl=True,
185-
retries=None,
185+
retries=0,
186186
max_pool_size=50,
187187
http_timeout=(10, 10),
188188
**kwargs):
@@ -214,7 +214,7 @@ def __init__(self,
214214
self.http_timeout = http_timeout
215215

216216
self.session = requests.Session()
217-
if retries:
217+
if retries or max_pool_size:
218218
self.session.mount('https://', HTTPAdapter(
219219
max_retries=retries, pool_maxsize=max_pool_size))
220220
self.session.mount('http://', HTTPAdapter(

0 commit comments

Comments
 (0)