www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: SFTP transfer hangs when the server connection has high latency RTT around 500 ms and 30% packet loss

Re: SFTP transfer hangs when the server connection has high latency RTT around 500 ms and 30% packet loss

From: Peter Stuge <peter_at_stuge.se>
Date: Fri, 1 Mar 2019 17:01:14 +0000

Hi,

Ketul Barot wrote:
> To eliminate if libssh2 is the real reason for the hang. I used
> sftp_write_nonblock.c as an example from the libssh2 examples and
> used that to upload a file in my setup and here to I am seeing the
> same behavior that the sftp_write_nonblock application get's hung.
>
> Would greatly appreciate if some one can look in to this. Also, I
> can provide any extra debug information that would help to resolve
> this issue.

Yes, you will have to provide debug information for anyone to be able
to analyze your problem.

Ideally build the current libssh2 master code with debug messages
enabled, and add a call like libssh2_trace(session, ~0); in
sftp_write_nonblock.c maybe after the libssh2_userauth_ calls, before
the first libssh2_sftp_ call.

Then send the full output from that program for a run where the error
happens to the list. Please log to a text file and attach that file
to your mail, so that all information is kept intact. Thanks!

//Peter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2019-03-01

the libssh2 team