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

Remove gevent sleep #30

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

Conversation

marcocen
Copy link

Under certain conditions messages were lost because of a race condition between the feedpuller and the hpfeeds socket timeouts.

When a reconnect was forced by feedpuller, the hpfeeds socket would be running the rcv function, so the stop function had no effect on this iteration. This function would then receive an event, save it, and stop. Then feedpuller would sleep for 5 seconds before running hpfeeds once more.

This led to a situation where some attacks that generated multiple events would log only the first event and the subsequent ones would be ignored.

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.

1 participant