You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: