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 the DefaultSftpClient for transferring some files, i came accross an issue where the sftp client stop responding and do not close for several days.
Using a threadDump, i can see that the DefaultSftpClient is waiting indefinitely on the method send.
Got a similar issue several days after but this time in method init.
The server side is a very slow SFTP, and the connection is not stable but nevertheless, it should not block a thread forever.
Actual behavior
infinite wait can occur in method send and init of DefaultSftpClient because of this code :
the 2 methods are using verify without specifying a maximum wait time.
Expected behavior
If the other side doesn't answer in a predefined time, exit and free the ressource.
Relevant log output
Unfortunately i don't have the threadDump anymore.
Other information
occurs in version 2.8.0 (but will also appear in 2.9.2)
The text was updated successfully, but these errors were encountered:
ecarou
changed the title
BabelwaySftpClient can wait indefinitely in method send and init
DefultSftpClient can wait indefinitely in method send and init
Mar 7, 2023
ecarou
changed the title
DefultSftpClient can wait indefinitely in method send and init
DefaultSftpClient can wait indefinitely in method send and init
Mar 7, 2023
Version
2.8.0
Bug description
Using the DefaultSftpClient for transferring some files, i came accross an issue where the sftp client stop responding and do not close for several days.
Using a threadDump, i can see that the DefaultSftpClient is waiting indefinitely on the method send.
Got a similar issue several days after but this time in method init.
The server side is a very slow SFTP, and the connection is not stable but nevertheless, it should not block a thread forever.
Actual behavior
infinite wait can occur in method send and init of DefaultSftpClient because of this code :
IoWriteFuture writeFuture = asyncIn.writeBuffer(buf); writeFuture.verify();
the 2 methods are using verify without specifying a maximum wait time.
Expected behavior
If the other side doesn't answer in a predefined time, exit and free the ressource.
Relevant log output
Unfortunately i don't have the threadDump anymore.
Other information
occurs in version 2.8.0 (but will also appear in 2.9.2)
The text was updated successfully, but these errors were encountered: