Subject: Re: Problems Receiving Files from Maveric SSH Server

Re: Problems Receiving Files from Maveric SSH Server

From: liuzl <xieepp_at_gmail.com>
Date: Fri, 9 Sep 2011 10:06:09 +0800

I think you can add some printf to the source code and then see the output.
First, in packet.c when we receive data, we will shrink our window, you can
add a printf like this:

            else
                /* Now that we've received it, shrink our window */
            {
                channelp->remote.window_size -= datalen - data_head;
                fprintf(stderr, "dec remote window size:%d\n",
channelp->remote.window_size);
            }
            break;
Second, when we successfully adjust out receive window
in _libssh2_channel_receive_window_adjust() in channel.c.
you can add a printf like this:
    else {
        channel->remote.window_size += adjustment;
        fprintf(stderr, "inc remote window size:%d\n",
channel->remote.window_size);
    }

Then see the output.

Good luck!

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-09-09