Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Break the loop when connection closes. #115

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

Conversation

mlowicki
Copy link

At the moment when f.ex. carbon-relay will be restarted
on the other side listener will end up in infinite loop
reading 0 bytes all the time.

When a recv returns 0 bytes, it means the other side has closed
(or is in the process of closing) the connection -
https://docs.python.org/2/howto/sockets.html

At the moment when f.ex. carbon-relay will be restarted
on the other side listener will end up in infinite loop
reading 0 bytes all the time.

When a recv returns 0 bytes, it means the other side has closed
(or is in the process of closing) the connection -
https://docs.python.org/2/howto/sockets.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant