question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resteasy Reactive first POST with InputStream hang

See original GitHub issue

Describe 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:

  1. mvn quarkus:dev
  2. attach e debugger
  3. 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_64
  • java -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:closed
  • Created 3 years ago
  • Comments:57 (53 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Mar 10, 2021

It’s unlikely I’ll be able to run it today. Hopefully tomorrow or Friday.

1reaction
masinicommented, Mar 9, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found