Skip to content

Fix double subtraction of bytes_read from num_to_read in recv_into #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
us3r64 opened this issue Jan 15, 2024 · 1 comment
Closed

Fix double subtraction of bytes_read from num_to_read in recv_into #184

us3r64 opened this issue Jan 15, 2024 · 1 comment

Comments

@us3r64
Copy link
Contributor

us3r64 commented Jan 15, 2024

If socket data is buffered and multiple readings happens to get the expected nbytes, bytes_read is going to be double subtracted.

Fix: #183

@dhalbert
Copy link
Contributor

Fjxed by #183.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants