Using version 02.19 with Apache commons.
In our application, we frequently connect to a third party SFTP server. Looks like, sometime, the server fails to retrieve a file. In this case, we close the connection (calling disconnect) after timeout, but there is a session thread that is never closed.
After a while, we have thousands of these threads staying open forever until we restart the app.
Looks like the InputStream returned from Socket must be checked isAvailable before trying to read.
Using version 02.19 with Apache commons. In our application, we frequently connect to a third party SFTP server. Looks like, sometime, the server fails to retrieve a file. In this case, we close the connection (calling disconnect) after timeout, but there is a session thread that is never closed.
After a while, we have thousands of these threads staying open forever until we restart the app. Looks like the InputStream returned from Socket must be checked isAvailable before trying to read.