Skip to content

Commit

Permalink
Merge branch 'main' into snyk-fix-445944dcea8926350b116120651ec59c
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 authored Jan 28, 2025
2 parents 5b24530 + 8e1fdef commit 9238899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/unit/http/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def test_session_not_preserved(self):
self.assertEqual(response_2.content, "response_2")



class MyVersion(Version):
def __init__(self, domain):
super().__init__(domain, "v1")
Expand Down
2 changes: 1 addition & 1 deletion twilio/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
self.session = Session() if pool_connections else None
if self.session and max_retries is not None:
self.session.mount("https://", HTTPAdapter(max_retries=max_retries))
if self.session is not None:
elif self.session is not None:
self.session.mount(
"https://", HTTPAdapter(pool_maxsize=min(32, os.cpu_count() + 4))
)
Expand Down

0 comments on commit 9238899

Please sign in to comment.