eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
692 stars 354 forks source link

apache5-connector isn't compatible with httpclient 5.4 #5790

Open cykl opened 4 hours ago

cykl commented 4 hours ago

apache5-connector currently depends on httpclient5 5.3.1. While troubleshooting a misbehaving application today, I figured out the root cause was that httpclient5 had been bumped to 5.4 by another transitive dependency. Observed behavior is that some calls end up with a SocketReadTimeoutException.

I then tried to bump httpclient5 to 5.4 in Jersey repo and run mvn -T1C package -pl connectors/apache5-connector for both 2.45 and 3.1.9 which resulted in multiple test failures. All tests pass when running with 5.3.1.

I have not yet figured the root cause of the regression.

It would be nice to address this issue in next Jersey release to ensure that clients can safely use latest httpclient5.

cykl commented 3 hours ago

Bisecting httpclient5 releases suggests that tests start failing with 5.4-alpha2, https://github.com/apache/httpcomponents-client/blob/master/RELEASE_NOTES.txt#L123