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

KTOR-8051 Revert EOFException change #4627

Merged
merged 2 commits into from
Jan 30, 2025
Merged

KTOR-8051 Revert EOFException change #4627

merged 2 commits into from
Jan 30, 2025

Conversation

bjhham
Copy link
Contributor

@bjhham bjhham commented Jan 27, 2025

Subsystem
Core, I/O

Motivation
Reverts the change in #4619 that removes these exceptions. My original assumption is that the closed channel exception would make more sense to throw since it's consistent with the rest of the library and contains some more context, but I found some websocket client code that relies on this behaviour, so it'd be best to keep this as is.

Solution
Rolled back this change, but with an extra check to ensure readFully with empty bounds is a no-op.

@bjhham bjhham requested a review from osipxd January 27, 2025 09:13
@bjhham bjhham enabled auto-merge (squash) January 29, 2025 15:04
@osipxd osipxd force-pushed the bjhham/eof-exception branch from 9add2a6 to 749074c Compare January 29, 2025 15:37
@bjhham bjhham merged commit 55106bc into main Jan 30, 2025
15 of 16 checks passed
@bjhham bjhham deleted the bjhham/eof-exception branch January 30, 2025 12:53
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.

2 participants