You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the included tests and notice that testHelloEndpointAsyncMulti fails.
Or
Build and start the application
Run curl http://localhost:8081/hello/async http://localhost:8081/hello/async -v -H "Connection: keep-alive"
Notice that the second connection fails and curl needs to create a new connection (compare with curl http://localhost:8081/hello/sync http://localhost:8081/hello/sync -v -H "Connection: keep-alive")
Environment (please complete the following information):
Output of uname -a or ver
Linux xxx 5.4.0-73-generic #82~18.04.1-Ubuntu SMP Fri Apr 16 15:10:02 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
Quarkus version or git rev
2.0.0.Final (also 1.13.3.Final)
Build tool (ie. output of mvnw --version or gradlew --version)
apache-maven-3.6.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Quarkus Resteasy Reactive kills connections even if Connection: keep-alive is specified and acknowledged by the server.
The problem only occurs when returning Multi<>s, not when returning Uni<>s or synchronous results.
A simple method such as
and then calling
curl http://localhost:8080 http://localhost:8080 -v -H "Connection: keep-alive
reproduces the problem.
Expected behavior
Quarkus Resteasy Reactive should behave like non-reactive and keep the connection alive.
Actual behavior
The connection is dead after the first request.
To Reproduce
Small project based on the Quarkus Reactive quick-start.
https://github.com/rasmusfaber/quarkus-resteasy-reactive-connection-drop
Steps to reproduce the behavior:
testHelloEndpointAsyncMulti
fails.Or
curl http://localhost:8081/hello/async http://localhost:8081/hello/async -v -H "Connection: keep-alive"
curl http://localhost:8081/hello/sync http://localhost:8081/hello/sync -v -H "Connection: keep-alive"
)Environment (please complete the following information):
Output of
uname -a
orver
Linux xxx 5.4.0-73-generic #82~18.04.1-Ubuntu SMP Fri Apr 16 15:10:02 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
Quarkus version or git rev
2.0.0.Final (also 1.13.3.Final)
Build tool (ie. output of
mvnw --version
orgradlew --version
)apache-maven-3.6.3
The text was updated successfully, but these errors were encountered: