Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: read the expected number of bytes form recv stream
- When reading from a stream, we first read the header which gives us information about the exact number of bytes to read the reamining content, thus when calling RecvStream::read_to_end we can use that number as a limit.
- Loading branch information
Showing
1 changed file
with
15 additions
and
17 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