cURL / Mailing Lists / curl-library / Single Mail


RE: An SFTP Upload Problem. Data transfer.

From: Pavel Shalagin <>
Date: Mon, 21 Apr 2008 15:27:40 +0400

Hi all,

After some experimenting I found that libssh2_sftp_write() inside
Curl_sftp_send in ssh.c permanently returns LIBSSH2_ERROR_EAGAIN in libcurl.

Another strange thing is that channel->local.window_size is 0 at the moment
when it is checked in channel.h (line 1709) and libssh2_packet_read() is


-----Original Message-----
From: Pavel Shalagin []
Sent: Monday, April 21, 2008 1:11 PM
To: 'libcurl development'
Subject: RE: An SFTP Upload Problem. Data transfer.

Hi Daniel,

I use the latest versions of libs (as far as I know):

I successfully uploaded a file with both "sftp_write_nonblock" and
"sftp_write" samples of libssh2. The main reason I thinking of that problem
as a bug is that log file grows unexpectedly fast. Maybe that is something
like eternal loop or similar one.

I'll try to examine libcurl's code. I'll write you if I find anything

Thank you.

-----Original Message-----
[] On Behalf Of Daniel Stenberg
Sent: Friday, April 18, 2008 4:44 PM
To: libcurl development
Subject: Re: An SFTP Upload Problem. Data transfer.

On Thu, 17 Apr 2008, Pavel Shalagin wrote:

> I faced with strange behavior of curl/libcurl while was trying to
> upload a file to my Influxis ( account through SFTP.

> Does somebody have any idea what could it be? Could it be differences
> in SFTP server implementations, firewall blocking or maybe slower
> internet connection?

Please try one of the libssh2 non-blocking sftp examples and see if that
works at all.

And you didn't tell us what libssh2 or libcurl versions you use!

  Commercial curl and libcurl Technical Support:
Received on 2008-04-21