skyline icon indicating copy to clipboard operation
skyline copied to clipboard

Break the loop when connection closes.

Open mlowicki opened this issue 9 years ago • 0 comments

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

mlowicki avatar Mar 16 '15 14:03 mlowicki