8000 Fix client hang on receiving a non-EOF error from net.Conn by vzeroupper · Pull Request #676 · emersion/go-imap · GitHub
[go: up one dir, main page]

Skip to content

Fix client hang on receiving a non-EOF error from net.Conn #676

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

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

vzeroupper
Copy link

This fixes #650.

Had the problem occur a few times.

The limitReader is to return io.ErrUnexpectedEOF instead of io.EOF if connection returns io.EOF in the middle of a literal.

@vzeroupper vzeroupper marked this pull request as ready for review March 17, 2025 17:12
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.

[v2] fetchCmd.Close() never finish if timeout
1 participant
0