You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "ecarou (via GitHub)" <gi...@apache.org> on 2023/03/07 10:17:40 UTC
[GitHub] [mina-sshd] ecarou opened a new issue, #328: BabelwaySftpClient can wait indefinitely in method send and init
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: dev-unsubscribe@mina.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
Re: [I] DefaultSftpClient can wait indefinitely in method send and init [mina-sshd]
Posted by "lgoldstein (via GitHub)" <gi...@apache.org>.
lgoldstein commented on issue #328:
URL: https://github.com/apache/mina-sshd/issues/328#issuecomment-1748069829
Merged
--
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: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] lgoldstein commented on issue #328: DefaultSftpClient can wait indefinitely in method send and init
Posted by "lgoldstein (via GitHub)" <gi...@apache.org>.
lgoldstein commented on issue #328:
URL: https://github.com/apache/mina-sshd/issues/328#issuecomment-1724059388
Seems reasonable - I will look into it...
--
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: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
Re: [I] DefaultSftpClient can wait indefinitely in method send and init [mina-sshd]
Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf closed issue #328: DefaultSftpClient can wait indefinitely in method send and init
URL: https://github.com/apache/mina-sshd/issues/328
--
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: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org