curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: sftp upload request hangs with a high latency server using multi interface

From: Ketul Barot via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 5 Mar 2019 21:01:38 +0000

Add some packet loss in the path and also you need a progress callback which should timeout after say 1 min if the transfer is stalled.

I think I have a workaround for this issue but need to test it. I will share the details once I have it.

Thanks,
Ketul

From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Tuesday, March 05, 2019 3:58 PM
To: Ketul Barot via curl-library <curl-library_at_cool.haxx.se>
Cc: Ketul Barot <kbarot_at_parallelwireless.com>
Subject: RE: sftp upload request hangs with a high latency server using multi interface

On Tue, 5 Mar 2019, Ketul Barot via curl-library wrote:

> I know originally I said that I am seeing the same behavior with libssh2
> example but I think I misunderstood it.

It seems to work for me:

$ ping localhost
PING localhost (127.0.0.1<http://127.0.0.1>) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1<http://127.0.0.1>: icmp_seq=1 ttl=64 time=500 ms
64 bytes from localhost (127.0.0.1<http://127.0.0.1>: icmp_seq=2 ttl=64 time=500 ms
^C
--- localhost ping statistics ---
3 packets transmitted, 2 received, 33.3333% packet loss, time 1000ms

$ ./src/curl -T test.jpg sftp://localhost//tmp/removeme
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
100 299k 0 0 100 299k 0 30413 0:00:10 0:00:10 --:--:-- 68040
$

This is with libcurl/7.64.1-DEV, OpenSSL/1.1.1b and libssh2/1.8.1_DEV

Any idea about what I should change to trigger this issue?

--
/ daniel.haxx.se<http://daniel.haxx.se>

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-05