Skip to content

Conversation

@bash-c
Copy link

@bash-c bash-c commented Oct 14, 2025

When the peer closes the connection, socket.recv() returns b''.
The previous loop made no progress and could spin forever.
Break on empty chunk to avoid the infinite loop.

@anadrianmanrique anadrianmanrique added the bug Unexpected problem or unintended behavior label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected problem or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants