Resteasy Reactive first POST with InputStream hang
See original GitHub issueDescribe the bug Using resteasy-reactive the first POST with an input stream hang forever
Expected behavior Return the payload
Actual behavior The socket stay connected forever if the client doesn’t implement a timeout
To Reproduce Clone this repo:
https://github.com/masini/test-case-resteasy-reactive-first-post-bug
Steps to reproduce the behavior:
- mvn quarkus:dev
- attach e debugger
- run the curl in the readme.md
Configuration
####HTTP #########
quarkus.http.port=8082
quarkus.http.ssl-port=9081
quarkus.http.access-log.enabled=true
quarkus.http.root-path=/resources
####SECURITY Start#########
quarkus.http.auth.basic=true
quarkus.security.users.embedded.enabled=true
quarkus.security.users.embedded.plain-text=true
quarkus.security.users.embedded.users.admin=admin
quarkus.security.users.embedded.roles.admin=TERMINAL_ROLE,APP_ROLE,TECHNICAL_ROLE
quarkus.http.ssl.certificate.key-store-file=tls/keystore.p12
quarkus.http.ssl.certificate.key-store-password=infogroup
quarkus.http.ssl.certificate.key-store-file-type=PKCS12
Environment (please complete the following information):
uname -a
: Darwin WMICTLM1P.lan 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 x86_64java -version
: openjdk version “11.0.10” 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)- Quarkus version or git rev: 1.12.0.Final (also tried with 1.12.1.Final, pushed this version)
mvnw --version
: Maven home: /Users/ictlm1/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3 Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: /Applications/sviluppo/java/jdk-11.0.10+9/Contents/Home Default locale: en_GB, platform encoding: UTF-8 OS name: “mac os x”, version: “10.15.7”, arch: “x86_64”, family: “mac”
Additional context This is a reproducer of a real problem in a real application.
In the real application this happens also without debugger and with the quarkus-run.jar, the reproducer instead is able to reproduce only with a debugger attached and not always. I think it’s a matter of timings, but I’m not sure, I need to debug more.
Issue Analytics
- State:
- Created 3 years ago
- Comments:57 (53 by maintainers)
Top Results From Across the Web
Writing REST Services with RESTEasy Reactive - Quarkus
RESTEasy Reactive is a new JAX-RS implementation written from the ground up to work on our common Vert.x layer and is thus fully...
Read more >Sending an InputStream to JAX-RS Resource - Adam Bien
A JAX-RS resource accepting a plain InputStream : ... UploadsResource { @POST @Consumes("*/*") public void upload(InputStream stream) throws ...
Read more >Chapter 39. Reactive programming support - JBoss.org
Reactive programming supports the declarative creation of rich computational structures. The representations of these structures can be passed around as ...
Read more >2020 quarkus-fascicle-understanding-v1.pdf
Developing Your First Quarkus Application . ... Reactive Programming . ... on the APIs and technologies Quarkus exposes: CDI, RESTEasy, ...
Read more >reactor/BlockHound - Gitter
readNBytes(InputStream.java:490) ~[na:na] at java.base/java.util.jar. ... I have a question (disclaimer: it's first time in my life I use Blockhound):.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s unlikely I’ll be able to run it today. Hopefully tomorrow or Friday.
I launched this on the root:
mvn -T C1 -Dquickly install -DskipTests
Now I check about the quarkus-bom, everytime I forget to change for the SNAPSHOT…
Thanks again @geoand