Skip to content

Fix connection reset error on long sessions #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

dror-fs
Copy link
Contributor

@dror-fs dror-fs commented Nov 10, 2023

Fix issue of connection reset error.

HTTPAdatper created that allows retrying POST requests is mounted onto requests.Session using the 'http' prefix. This prefix is always superseded by already existing 'https://' which re-raises on POST and fails the request.

HTTPAdatper mounted onto requests.Session using the 'http' prefix which is always superseded by already existing 'https://'.

Effectively, the current code will not retry the mixpanel POST request and will cause a connection reset error.
Copy link

@trobertsonsf trobertsonsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This has been spamming our logs for a while.

@dror-fs
Copy link
Contributor Author

dror-fs commented Feb 1, 2024

@trobertsonsf Thank you for the approval. Can you merge the PR?

@jaredmixpanel jaredmixpanel self-requested a review March 8, 2024 22:20
Copy link
Contributor

@jaredmixpanel jaredmixpanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, sorry this didn't get merged sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection reset by peer from BufferedConsumer
3 participants