Skip to content
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

Closed
usertree opened this issue Jun 1, 2022 · 4 comments
Closed
Labels
Bug For general bugs on Jetty side

Comments

@usertree
Copy link

usertree commented Jun 1, 2022

Jetty version(s)
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?
image

See this issue, but it does not seem to solve the problem.
#4865

@usertree usertree added the Bug For general bugs on Jetty side label Jun 1, 2022
@usertree usertree closed this as completed Jun 1, 2022
@usertree usertree reopened this Jun 1, 2022
@sbordet
Copy link
Contributor

sbordet commented Jun 1, 2022

@sbordet sbordet closed this as completed Jun 1, 2022
@usertree
Copy link
Author

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.

@kohlschuetter
Copy link
Contributor

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)

@kohlschuetter
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

No branches or pull requests

3 participants