Skip to content

Commit

Permalink
Merge pull request #123 from dror-fs/connection_reset_fix
Browse files Browse the repository at this point in the history
Fix connection reset error on long sessions
  • Loading branch information
jaredmixpanel committed Mar 8, 2024
2 parents 1db05d8 + 7297eb4 commit e38ba29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixpanel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def __init__(self, events_url=None, people_url=None, import_url=None,
)

self._session = requests.Session()
self._session.mount('http', adapter)
self._session.mount('https://', adapter)

def send(self, endpoint, json_message, api_key=None, api_secret=None):
"""Immediately record an event or a profile update.
Expand Down

0 comments on commit e38ba29

Please sign in to comment.