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: Ketul Barot <kbarot_at_parallelwireless.com>
Date: Tue, 5 Mar 2019 15:25:13 +0000

Hi,

For some reason I am not able to reproduce the hang with sftp_write_nonblock.c but I did find the same thing happen with the curl. I have enabled the debug option and added the libssh2_trace as mentioned by you.

Attaching the log file. It has both libcurl debug messages & libssh2 debug messages. Please take a look at the log file and I will try again to reproduce the hang with sftp_write_nonblock.c example. I will send the debug log for that once I reproduce the issue.

Thanks,
Ketul

From: libssh2-devel <libssh2-devel-bounces_at_cool.haxx.se> On Behalf Of libssh2-devel-request_at_cool.haxx.se
Sent: Saturday, March 02, 2019 6:00 AM
To: libssh2-devel_at_cool.haxx.se
Subject: libssh2-devel Digest, Vol 117, Issue 1

Send libssh2-devel mailing list submissions to
libssh2-devel_at_cool.haxx.se<mailto:libssh2-devel_at_cool.haxx.se>

To subscribe or unsubscribe via the World Wide Web, visit
https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel<https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>
or, via email, send a message with subject or body 'help' to
libssh2-devel-request_at_cool.haxx.se<mailto:libssh2-devel-request_at_cool.haxx.se>

You can reach the person managing the list at
libssh2-devel-owner_at_cool.haxx.se<mailto:libssh2-devel-owner_at_cool.haxx.se>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of libssh2-devel digest..."


Today's Topics:

1. Re: SFTP transfer hangs when the server connection has high
latency RTT around 500 ms and 30% packet loss (Peter Stuge)


----------------------------------------------------------------------

Message: 1
Date: Fri, 1 Mar 2019 17:01:14 +0000
From: Peter Stuge <peter_at_stuge.se<mailto:peter_at_stuge.se>>
To: libssh2-devel_at_cool.haxx.se<mailto:libssh2-devel_at_cool.haxx.se>
Subject: Re: SFTP transfer hangs when the server connection has high
latency RTT around 500 ms and 30% packet loss
Message-ID: <20190301170114.22805.qmail_at_stuge.se<mailto:20190301170114.22805.qmail_at_stuge.se>>
Content-Type: text/plain; charset=us-ascii

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


------------------------------

Subject: Digest Footer

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_cool.haxx.se<mailto:libssh2-devel_at_cool.haxx.se>
https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel<https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>


------------------------------

End of libssh2-devel Digest, Vol 117, Issue 1
*********************************************

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2019-03-05

the libssh2 team