-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Resteasy "connection was closed" error after upgrading to 2.4.x #21762
Comments
@geoand I was able to reproduce the issue using the reproducer from #21602. By reloading the following URL The good news is that I was not able to reproduce the issue using 2.5.0.CR1. |
It could be, but it seems unlikeky.
How about with |
@geoand Works with I'm afraid we are going to need to wait for Thanks. |
@geoand Does it make sense to end the response here https://github.com/quarkusio/quarkus/blob/main/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxBlockingOutput.java#L79? Similarly to the lines right above where the response is ended prior to throwing the exception or just returning. I'm asking because if the vert.x response is not properly ended handlers added via |
I assume that throwing at that point ensure the exception is picked and handled up elsewhere, although I am not sure. Have you tried patching that part to see if it affect your use case somehow? |
Not yet. Just found this and solved it on our side by checking if headers were written after invoking downstream handlers from our filter to then make sure our resources are properly cleaned up. I'll do that and get back to you. Thanks. |
@geoand Yes, it does help. And it kind of makes sense because until After bumping to If you want I can check how to write a test for it and send a PR. |
That would be great |
No idea honestly since I don't know how you reproduced the error in the first place. |
Here is a simple reproducer with Quarkus 2.5.1: reproducer.zip
@geoand reopen? |
Thanks for the reproducer. I opened #21942 to handle it |
Relates to: quarkusio#21762 (comment) (cherry picked from commit 4783958)
Describe the bug
After bumping the Quarkus version to 2.4.x (tested 2.4.0.Final, 2.4.1.Final, and 2.4.2.Final) in Keycloak, the following error is happening every time you reload a page multiple times during a short period (e.g.: holding F5 when at the browser):
The error does not happen if we downgrade to version 2.3.1.
Expected behavior
No errors in logs if loading a page multiple times.
Actual behavior
Errors are shown in logs as per description.
How to Reproduce?
I'm did not work yet a reproducer but the error is very easy to reproduce by following these steps:
Output of
uname -a
orver
Linux fedora 5.14.18-200.fc34.x86_64 #1 SMP Fri Nov 12 16:48:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.13" 2021-10-19 OpenJDK Runtime Environment 18.9 (build 11.0.13+8) OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: