-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always buffer TCP data in __handle_recv()
Refactor __handle_recv() to always create a BytesIO() object for TCP data. Linearize control flow for ease of debugging. Always apply length checks so that we don't have to wait for EOF in the multiple-recv case. Fixes a bug where we wouldn't return any data because we never received the EOF, or didn't receive it fast enough. Signed-off-by: Robbie Harwood <[email protected]>
- Loading branch information
1 parent
d0b35c2
commit 7e2b1ab
Showing
1 changed file
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters