ecarou opened a new issue, #328:
URL: https://github.com/apache/mina-sshd/issues/328
### Version
2.8.0
### Bug description
Using the BabelwaySftpClient 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 BabelwaySftpClient 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 BabelwaySftpClient
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
```Shell
Unfortunately i don't have the threadDump anymore.
```
### Other information
occurs in version 2.8.0 (but will also appear in 2.9.2)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]