Subject: Re: [libssh2] #205: "Error waiting for FXP_READ ACK" during large download on Windows

Re: [libssh2] #205: "Error waiting for FXP_READ ACK" during large download on Windows

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Sat, 08 Jan 2011 23:36:42 -0000

#205: "Error waiting for FXP_READ ACK" during large download on Windows
------------------------+---------------------------------------------------
  Reporter: riordanmr | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone: 1.2.8
 Component: API | Version: 1.2.7
Resolution: | Keywords:
    Blocks: | Blocked By:
------------------------+---------------------------------------------------

Comment (by bagder):

 Can you please try to apply a debug patch such as the following to see
 what kind of size libssh2 thinks it is getting:

 {{{
 --- a/src/sftp.c
 +++ b/src/sftp.c
 @@ -205,10 +205,13 @@ sftp_packet_read(LIBSSH2_SFTP *sftp)
          packet_len = _libssh2_ntohu32(sftp->partial_size);
          /* make sure we don't proceed if the packet size is unreasonably
             large */
 - if (packet_len > LIBSSH2_SFTP_PACKET_MAXLEN)
 + if (packet_len > LIBSSH2_SFTP_PACKET_MAXLEN) {
 + fprintf(stderr, "INFO: Got %u bytes packet\n",
 + packet_len);
              return _libssh2_error(session,
                                    LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED,
                                    "SFTP packet too large");
 + }

          _libssh2_debug(session, LIBSSH2_TRACE_SFTP,
                         "Data begin - Packet Length: %lu", packet_len);

 }}}

-- 
Ticket URL: <http://trac.libssh2.org/ticket/205#comment:2>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-09