Subject: Re: [libssh2] libssh2-0.16 hanging on scp copy

Re: [libssh2] libssh2-0.16 hanging on scp copy

From: Daniel Stenberg <>
Date: Sun, 12 Aug 2007 00:19:47 +0200 (CEST)

On Thu, 9 Aug 2007, Daniel Stenberg wrote:

> Ok friends, I'll need some help and eyes on this.

1. I committed the src/transport.c fix I mentioned since the previous version
    was simply wrong.

2. I've tracked down the hang to being somehow related to the SSH channel
    window size. I can remove the hang and complete my 90MB download if I apply
    the patch below. It is very crude and simply cuts out the shrinking of the
    window size, but I must admit I don't fully understand why the logic works
    this way.

Again, I'm open for input, ideas or even lectures! ;-)

diff -u -b -r1.55 packet.c
--- packet.c 6 Aug 2007 20:48:07 -0000 1.55
+++ packet.c 11 Aug 2007 22:17:29 -0000
@@ -715,9 +715,11 @@
                          session->packAdd_channel->remote.window_size +
                  } else {
+#if 0
                      /* Now that we've received it, shrink our window */
                      session->packAdd_channel->remote.window_size -=
                          datalen - session->packAdd_data_head;

This email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
libssh2-devel mailing list
Received on 2007-08-12