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

[UNDERTOW-2249] Change that HttpClientConnection.sendRequest on a clo... #1564

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

xjusko
Copy link
Contributor

@xjusko xjusko commented Mar 6, 2024

...sed connection results in a ClosedChannelException instead of IOException
https://issues.redhat.com/browse/UNDERTOW-2249

@xjusko
Copy link
Contributor Author

xjusko commented Mar 14, 2024

Hi @fl4via , could you please review my PR? Thanks.

fl4via
fl4via previously requested changes Mar 15, 2024
Copy link
Member

@fl4via fl4via left a comment

Choose a reason for hiding this comment

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

@xjusko the ClosedChannelException is not always appropriate, as if you look at the usages of UndertowClientMessages.invalidConnectionState, it is thrown not only when the connection is closed or close is requested, but also on upgrade scenarios.
That being said, I see the point you raised and I think the ticket is valid. So, my suggestion here is to add another message just for closed connections, that message would throw the ClosedChannelException. Then, at the usage points, you would have two checks: one for upgrades, that uses the ld IOException invalidConnectionState, and the other one for close states, and this one would use your new message and throw the ClosedChannelException.

@fl4via fl4via added enhancement Enhances existing behaviour or code waiting PR update Awaiting PR update(s) from contributor before merging labels Mar 15, 2024
…sed connection results in a ClosedChannelException instead of IOException
@xjusko
Copy link
Contributor Author

xjusko commented Mar 15, 2024

Thanks for the review @fl4via , it should be fixed based on your suggestion.

@baranowb baranowb added under verification Currently being verified (running tests, reviewing) before posting a review to contributor waiting peer review PRs that edit core classes might require an extra review and removed waiting PR update Awaiting PR update(s) from contributor before merging labels Mar 21, 2024
@xjusko
Copy link
Contributor Author

xjusko commented Mar 21, 2024

@fl4via I see that CI failed, but I don't think that my changes have any implications on the test that failed.

@baranowb baranowb added the waiting CI check Ready to be merged but waiting for CI check label Apr 3, 2024
@baranowb
Copy link
Contributor

baranowb commented Apr 3, 2024

@xjusko ^^

@xjusko xjusko requested a review from fl4via April 11, 2024 08:29
@baranowb baranowb requested a review from ropalka June 24, 2024 10:54
@baranowb baranowb dismissed fl4via’s stale review June 24, 2024 10:55

Same thing here...

@ropalka ropalka added next release This PR will be merged before next release or has already been merged (for payload double check) new feature/API change New feature to be introduced or a change to the API (non suitable to minor releases) labels Jun 26, 2024
@baranowb baranowb added next release This PR will be merged before next release or has already been merged (for payload double check) and removed under verification Currently being verified (running tests, reviewing) before posting a review to contributor waiting CI check Ready to be merged but waiting for CI check next release This PR will be merged before next release or has already been merged (for payload double check) waiting peer review PRs that edit core classes might require an extra review labels Jul 29, 2024
@baranowb baranowb merged commit ac92f03 into undertow-io:main Jul 30, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances existing behaviour or code new feature/API change New feature to be introduced or a change to the API (non suitable to minor releases) next release This PR will be merged before next release or has already been merged (for payload double check)
Projects
None yet
4 participants