Skip to content
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

Fixed EOF detection on asyncio when there is also data in the buffer #703

Merged
merged 7 commits into from
Apr 4, 2024

Conversation

agronholm
Copy link
Owner

@agronholm agronholm commented Mar 18, 2024

I also made receive() more efficient by not having two consecutive checkpoints in the case where it needs to wait for data, and avoided unnecessary task switching if the task hasn't been cancelled.

Closes #701.

Copy link

@fungs fungs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't go deep, but the changes in the functions are small and the test looks good!

@agronholm agronholm merged commit 30c0e68 into master Apr 4, 2024
15 checks passed
@agronholm agronholm deleted the fix-701 branch April 4, 2024 21:42
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

Successfully merging this pull request may close these issues.

TCP listener handler does not disconnect on EOF (netcat -N)
3 participants