Hi, I have written a small SFTP Server based on this example: https://github.com/spring-projects/spring-integration-samples/blob/main/basic/sftp/src/test/java/org/springframework/integration/samples/sftp/EmbeddedSftpServer.java
Works ok so far, I can log in with SSH keys, execute commands like cd, ls, put & get, etc. but when I try to stop the server, the Thread that calls SshServer.stop(true / false), gets killed by a ThreadDeath, which is not nice, since I still need that Thread... And I don't think, catching ThreadDeath and then somehow trying to continue is the right thing to do... Also I notice that the port is not closed properly (netstat -a still displays it in state LISTENING), and a lot of daemon Threads that this SshServer spawned, keep running. Am I doing something wrong? How can I cleanly shutdown the server and clean up all resources (open port, no longer needed Threads) when no longer needed? Thanks and best Regards, Ulrich
