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

Close socket on any exception #130

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

Conversation

anti-social
Copy link

We have a problem with python-memcached and celery. Sometimes our tasks get incorrect data from memcache.
This is because celery send SIGUSR1 signal to the worker process that exceeds soft time limit. The worker handle that signal and raises SoftTimeLimitExceeded exception. If this happened between writing and reading from socket received data remains in the socket. Thus next task receives them.

@anti-social anti-social force-pushed the dev/close-socket-on-exception branch 2 times, most recently from 1d40693 to 206cef5 Compare September 29, 2017 21:08
@anti-social anti-social force-pushed the dev/close-socket-on-exception branch from 206cef5 to 83f3a07 Compare September 29, 2017 21:18
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