Skip to content
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

Make connection handling more robust #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skrue
Copy link

@skrue skrue commented May 25, 2024

This solved #25 for me. Seems that writer could not successfully be closed after a ConnectionResetError. Now an exception is thrown and self._reader and self._writer are set to None. This way the next attempt to open the connection succeeds.

Copy link

@anderl78 anderl78 left a comment

Choose a reason for hiding this comment

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

Looks promising,! No connection timeouts since i updated my system to this comment. If there is still no problem in a few days, I will stick on this. Thank you!

@anderl78
Copy link

Ok, since 3 days no connection error. Perfekt. Thank you!

@skrue
Copy link
Author

skrue commented Jun 21, 2024

@anderl78 Good to know, thank you for testing! I am not too experienced with Python programming so this was a bit of trial-and-error and I'm not sure if it is actually a valid approach, but it did improve the situation so it can't be completely wrong.
@TheRealKillaruna maybe you want to merge this PR now?

@anderl78
Copy link

@skrue: would be great if you could look here:
#38 (comment)

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.

2 participants