You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2016/07/01 13:03:11 UTC
[jira] [Commented] (SSHD-671) Internal hang (timeout) using
ScpClient.upload()
[ https://issues.apache.org/jira/browse/SSHD-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15358924#comment-15358924 ]
Goldstein Lyor commented on SSHD-671:
-------------------------------------
Thanks for bring this to my attention - for now, I cannot really figure out the problem. It is strange though since the unit tests on that involve SCP do not exhibit this 5 seconds delay. Since these tests run on {{localhost}} perhaps it is a specific network or server problem for your setup. It would help if you could run the tests using a 127.0.0.1 setup. My suspicion of some kind of local setup problem is also founded on the fact that you say that SFTP works well. The difference between SCP and SFTP is that SCP involves the server's shell (since SCP is sent via an EXEC channel) whereas SFTP involves only the file system - so maybe the *server* is somehow misbehaving. These are the leads that may help better diagnose the issue that I can offer at this time. Please do attach any insights or investigation results you come up with in case it is a Java code problems that should be fixed (P.S. please make sure you are using the latest version of MINA SSHD - 1.2).
> Internal hang (timeout) using ScpClient.upload()
> ------------------------------------------------
>
> Key: SSHD-671
> URL: https://issues.apache.org/jira/browse/SSHD-671
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: Oliver Stöneberg
> Attachments: scp_upload_hang.txt
>
>
> Uploading via SCP seems to be extremely slow compared to SFTP and simple command execution via SSH. It looking at the log it appears that after it uploaded the complete file it runs into a (5 second) timeout which makes the upload appear slow. See the attached log file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)