-
Notifications
You must be signed in to change notification settings - Fork 355
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
JdkConnector does not properly cleanup ERROR state connections #5599
Comments
@dude-abides which is the request or how do you receive the ERROR state after which a connection is not removed? |
Step to recreate
|
So, I've retried the described behavior.
case because the |
I am using Dropwizard 4 (Jersey 3.0.5) on Java 17. This problem exists in 3.0.12 as well.
When an HttpConnection transitions to ERROR from IDLE state, the connection gets closed but not removed from DestinationConnectionPool. This results in the next request failing regardless of whether the server has been restarted.
My guess is that cleanClosedConnection should be called at:
jersey/connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/DestinationConnectionPool.java
Line 287 in fc78757
The text was updated successfully, but these errors were encountered: