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

Fix block on PING request #34

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

Conversation

JeSuisAbraham
Copy link

This patch fixes the indefinite hold of the lock following a PING message

The _raw_recv and _mcon now respond to a PING message like all the other messages and will not block
This blocking would prevent the bot from performing "send" (and other) requests until activity unblocked the bot

This fix moves the PONG answer to the recv function where all the other messages processing takes place and returns the None event (no further processing required)

Fixes #33

This patch fixes the indefinite hold of the lock following a PING message

The _raw_recv and _mcon now respond to a PING message like all the other messages and will not block
This blocking would prevent the bot from performing "send" (and other) requests until activity unblocked the bot

This fix moves the PONG answer to the recv function where all the other messages processing takes place and returns the None event (no further processing required)

Fixes jamieleshaw#33
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.

lurklib 'sleeps' without channel activity and fails to send messages to the channel
1 participant