Skip to content
New issue

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

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

Already on GitHub? # to your account

HTTPDecoder: no error on unclean EOF on upgrade #1063

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

weissi
Copy link
Member

@weissi weissi commented Jul 11, 2019

Motivation:

Previously we thought that if we have some bytes left that belong to an
upgraded protocol, we should deliver those as an error. This is
implemented on master but not in any released NIO version.
However, no other handler sends errors on unclean shutdown, so it feels
wrong to do it in this one very specific case (EOF on inflight upgrade
with data for the upgraded protocol)

Modifications:

Remove the error again.

Result:

Less behaviour change to the last released NIO version.

Motivation:

Previously we thought that if we have some bytes left that belong to an
upgraded protocol, we should deliver those as an error. This is
implemented on `master` but not in any released NIO version.
However, no other handler sends errors on unclean shutdown, so it feels
wrong to do it in this one very specific case (EOF on inflight upgrade
with data for the upgraded protocol)

Modifications:

Remove the error again.

Result:

Less behaviour change to the last released NIO version.
@weissi weissi requested a review from Lukasa July 11, 2019 15:17
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jul 11, 2019
@Lukasa Lukasa added this to the 2.4.0 milestone Jul 11, 2019
@Lukasa Lukasa merged commit 334815f into apple:master Jul 11, 2019
@weissi weissi deleted the jw-no-err-on-unclean branch July 11, 2019 16:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants