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

Break the loop when connection closes.#115

Open
mlowicki wants to merge 1 commit intoetsy:masterfrom
mlowicki:etsy_fix_infinite_loop
Open

Break the loop when connection closes.#115
mlowicki wants to merge 1 commit intoetsy:masterfrom
mlowicki:etsy_fix_infinite_loop

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.

1 participant