-
Notifications
You must be signed in to change notification settings - Fork 348
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
SshServer shutdown on Windows may report exceptions about already shut down ExecutorService #409
Comments
Compare also https://stackoverflow.com/questions/14073554 : that is exactly the same problem, but without Apache MINA sshd in the loop. That example just uses
in that example. What happens is that closing the acceptor causes an This appears to work fine on Unix, but on Windows, the task calling It's unclear to me whether this a JDK bug. If closing the One way to avoid these exceptions is to give the group a |
Interesting: https://bugs.openjdk.org/browse/JDK-7056546 (from 2011, reported against Java 1.7):
Well, that bug is still in state "open". Sounds very much what we are seeing here: we have a single channel (the acceptor) and close it before the group shutdown, and the problem exists only on Windows. |
Version
2.10.0
Bug description
From the mailing list:
Attached code causes circa 50 exceptions:
Actual behavior
Lots of exceptions about an already shut down ExecutorService are logged.
This occurs on Windows only; it's not reproducible on Linux.
Expected behavior
No exceptions are logged; the server shuts down cleanly.
Relevant log output
Other information
OS: Windows
Originally reported using temurin 19.0.2.7 and Apache MINA sshd 2.10.0, but it also occurs with other JVMs/JDKs.
The text was updated successfully, but these errors were encountered: