-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
JNR/UnixSocket connect does not release? #7187
Comments
Support for Unix-Domain sockets via I recommend that you switch to Java 16 or later and use OpenJDK Unix-Domain support, which is supported in Jetty 10 via the |
@sbordet what's the OpenJDK Unix-Domain replacement for HttpClient's HttpClientTransportOverUnixSockets? |
@sbordet Is there a good solution on jetty 9? |
Unfortunately no, JNR is not stable enough and now that support for Unix-Domain landed in the JDK I don't think we will try and chase down bugs in JNR. Note that using Jetty 10's |
This issue has been automatically marked as stale because it has been a |
This issue has been closed due to it having no activity. |
Jetty version(s)
9.4.43.v20210629
Java version/vendor
(use: java -version)
1.8
OS type/version
linux
Description
Do not report security issues here! See Jetty Security Reports.
we use HttpClientTransportOverUnixSockets
send request such as :
HttpClientTransportOverUnixSockets transport = new HttpClientTransportOverUnixSockets(getSocketPath());
clientUds = new HttpClient(transport, null);
transport.setHttpClient(clientUds);
send:
...
request = client.newRequest(servicePath);
...
FutureResponseListener listener = new FutureResponseListener(request, bodysize);
request.send(listener);
ContentResponse response = listener.get(timeout, TimeUnit.MILLISECONDS);
Map<String, String> rspMap = new HashMap<String, String>();
rspMap.put("contentEncoding", response.getEncoding());
rspMap.put("contentType", response.getMediaType());
rspMap.put("streamAsString", response.getContentAsString());
return buildRestfulResponse(response.getStatus(), response.getHeaders(), response.getContent(), rspMap);
however we find in HttpDestination we debug :
in the connectionpool connect timeout but canot ralease when the pool is fulled we canot send any request
How to reproduce?
The text was updated successfully, but these errors were encountered: