Skip to content

Conversation

@txema-martinez-scopely
Copy link
Contributor

When the Netty HttpObjectDecoder transitioned into a BAD_MESSAGE state, any subsequent requests on the same connection were ignored.

This PR fixes that behavior by sending a connection: close response header, so the client closes the connection.

Discussion: #4351
Jira ticket: RESTEASY-3553

@txema-martinez-scopely txema-martinez-scopely requested a review from a team as a code owner November 14, 2024 13:24
@txema-martinez-scopely
Copy link
Contributor Author

I don't know why the tests fail in windows

@jamezp
Copy link
Member

jamezp commented Nov 14, 2024

Yeah, it seems to be related to the change. I've got a Windows VM I can do some testing on.

@txema-martinez-scopely
Copy link
Contributor Author

Yeah, it seems to be related to the change. I've got a Windows VM I can do some testing on.

The problem was related with the SocketException that is thrown when the connection is reset.
The test was checking for a specific exception message, but this message is platform dependent.
I fixed the test.

@jamezp
Copy link
Member

jamezp commented Jan 9, 2025

Hello @txema-martinez-scopely, I'm sorry for the late review/response on this. I also truly appreciate all the work you've done on this.

We require all contributions to be made under the terms of the ASL 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Do you agree to these terms?

@txema-martinez-scopely
Copy link
Contributor Author

Hello @txema-martinez-scopely, I'm sorry for the late review/response on this. I also truly appreciate all the work you've done on this.

We require all contributions to be made under the terms of the ASL 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 Do you agree to these terms?

Yes, I agree to the ASL 2.0 License terms.

Copy link
Member

@jamezp jamezp left a comment

Choose a reason for hiding this comment

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

I'm so sorry for the delay on this. I struggled a bit to create a reproducer, but when I did this seemed to fix it and I don't really have a better idea of how to fix it. This looks reasonable to me.

Copy link
Member

Choose a reason for hiding this comment

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

Just an FYI I'm going to add a commit after this is merged to add a copyright header here.

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