Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix connection hangs #78

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NTillmann
Copy link

This addresses #77 by fixing a few bugs that I discovered (after adding a lot of custom logging to identify the root cause). It also adds a recovery mechanism if no response for a message is received within a minute.

Note how sendCmd inserts "None" instead of proper futures if waitForResponse=False. We need to safeguard against that.
Otherwise, an exception will be raised when attempting to cancel "None", and then we will not successfully stop, and not properly reconnect either.
trigger a call-back to responseReceived. Thus,
it's import to do any internal accounting, in
particular on self._out_pending, before that call.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant