-
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
Error reporting "Could not process key for channel" for unix sockets #8091
Comments
The JNR UnixSocket implementation is not stable. Please use Java 16's UnixDomain sockets instead, available in Jetty 10+. See: |
The JDK cannot be upgraded due to historical reasons. Can I replace jnr-unixsocket on which jetty-unixsocket depends with junixsocket?Are there any examples? After I replaced it, there seems to be some problems with the selector. |
Related issue on junixsocket: kohlschutter/junixsocket#108 (I'm the author of junixsocket. Please let me know if you found any problems with junixsocket with your setup; version 2.5.0 has seen significant improvements, also regarding Selectors) |
Since there's probably at least another person who thought about adding junixsocket to jetty but then gave up: I'm now adding jetty support to junixsocket (via the "junixsocket-jetty" artifact). The latest code (2.5.1-SNAPSHOT) now supports both a server connector (jetty >= 9.4.12) and a client connector (jetty >= 10.0.8). Please give it a try and let me know if that works for you. See discussion in kohlschutter/junixsocket#108 |
Jetty version(s)
![image](https://user-images.githubusercontent.com/32734356/171363388-1c260d58-7d23-4d36-b8cb-48a7a9432045.png)
9.4.46.v20220331
Java version/vendor
(use: java -version)
8
OS type/version
x86
Description
When the peer end is unreachable, the expected response code is 503. However, in practice, no result is returned until 30 seconds expires. How to solve or avoid this problem?
See this issue, but it does not seem to solve the problem.
#4865
The text was updated successfully, but these errors were encountered: