This repo helps reproduce the issue described in quarkusio/quarkus#28818.
Steps:
- Start application
- Make the following request (using Postman or
curl
or any other HTTP client):GET localhost:4444/sendRequest
- This will make the service send a
POST
request with a 5MB body and an unexpectedContent-Type
header to itself on the path\hello
- This will make the service send a
- The client will get stuck because the server doesn't fully read the request nor close the connection.
- To verify this, pause the execution and look at the threads - one of them should be stuck on
java.net.SocketOutputStream.socketWrite0()
. - Another consequence of this is that further requests to
GET localhost:4444/sendRequest
may hang.
- To verify this, pause the execution and look at the threads - one of them should be stuck on