Title: GitHub · Where software is built
Open Graph Title: docker-java/docker-java
X Title: docker-java/docker-java
Description: Java Docker API Client. Contribute to docker-java/docker-java development by creating an account on GitHub.
Open Graph Description: Java Docker API Client. Contribute to docker-java/docker-java development by creating an account on GitHub.
X Description: Java Docker API Client. Contribute to docker-java/docker-java development by creating an account on GitHub.
Opengraph URL: https://github.com/docker-java/docker-java
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`docker-java-transport-httpclient5` broken over Unix sockets (regression in `httpclient5` 5.4)","articleBody":"### Steps to reproduce\r\n\r\nClone https://github.com/docker-java/docker-java.git and apply\r\n\r\n```xml\r\ndiff --git a/docker-java-transport-httpclient5/pom.xml b/docker-java-transport-httpclient5/pom.xml\r\nindex 48b751d5..808855f2 100644\r\n--- a/docker-java-transport-httpclient5/pom.xml\r\n+++ b/docker-java-transport-httpclient5/pom.xml\r\n@@ -29,7 +29,7 @@\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003eorg.apache.httpcomponents.client5\u003c/groupId\u003e\r\n \u003cartifactId\u003ehttpclient5\u003c/artifactId\u003e\r\n- \u003cversion\u003e5.0.3\u003c/version\u003e\r\n+ \u003cversion\u003e5.4\u003c/version\u003e\r\n \u003c/dependency\u003e\r\n```\r\n\r\nand run `mvn clean verify -Dtest=HttpClient5Tests -DfailIfNoTests=false -DskipITs`\r\n\r\n### Expected results\r\n\r\nNote: These are the actual results with httpclient5 5.0.3 and 5.3.1.\r\n\r\nTests pass.\r\n\r\n### Actual results\r\n\r\nTests fail with\r\n\r\n```\r\njava.lang.RuntimeException: org.apache.hc.client5.http.HttpHostConnectException: Connect to unix://localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused\r\n\tat com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:210)\r\n\tat com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9)\r\n\tat com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228)\r\n\tat com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)\r\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\r\nCaused by: org.apache.hc.client5.http.HttpHostConnectException: Connect to unix://localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused\r\n\tat java.base/sun.nio.ch.Net.pollConnect(Native Method)\r\n\tat java.base/sun.nio.ch.Net.pollConnectNow(Net.java:682)\r\n\tat java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)\r\n\tat java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592)\r\n\tat java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)\r\n\tat java.base/java.net.Socket.connect(Socket.java:751)\r\n\tat org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:216)\r\n\tat org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:490)\r\n\tat org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:164)\r\n\tat org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:174)\r\n\tat org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:144)\r\n\tat org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)\r\n\tat org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192)\r\n\tat org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)\r\n\tat org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:150)\r\n\tat org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)\r\n\tat org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:113)\r\n\tat org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)\r\n\tat org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:110)\r\n\tat org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)\r\n\tat org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:174)\r\n\tat org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87)\r\n\tat com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:206)\r\n```\r\n\r\n### Evaluation\r\n\r\nBisection shows this regression was caused by https://github.com/apache/httpcomponents-client/commit/851c8df9f in https://github.com/apache/httpcomponents-client/pull/540 by @ok2c. See also [HTTPCLIENT-2348](https://issues.apache.org/jira/browse/HTTPCLIENT-2348).","author":{"url":"https://github.com/basil","@type":"Person","name":"basil"},"datePublished":"2024-10-28T19:24:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2363/docker-java/issues/2363"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:fca5a9c1-7a61-a0f4-9e98-33b2be0ee14e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E36:19C1C9:6AF214:9222B1:69735C57 |
| html-safe-nonce | dd4c6760eb9073b91d339785714f0016811fa692dffadf46b047981798b87cf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTM2OjE5QzFDOTo2QUYyMTQ6OTIyMkIxOjY5NzM1QzU3IiwidmlzaXRvcl9pZCI6IjcyODQwMjcxNDg2NDc3NTA3NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | da49eaa509c920b1babf27513a8d055dbd3a1d0058755b9a7b80c34a6e2e9cea |
| hovercard-subject-tag | repository:20415251 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/docker-java/docker-java/issues/2363 |
| twitter:image | https://opengraph.githubassets.com/c31f8f3e9151e9dea251a341382fab712b1321247b850f978eba3fb0478f364d/docker-java/docker-java |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c31f8f3e9151e9dea251a341382fab712b1321247b850f978eba3fb0478f364d/docker-java/docker-java |
| og:image:alt | Java Docker API Client. Contribute to docker-java/docker-java development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-cache |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c75712c8aa15b01c097cbf3f10ca694d449599 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width