Subject: Re: Debugging SCP failure: "Timed out waiting for SCP response"

Re: Debugging SCP failure: "Timed out waiting for SCP response"

From: Tim Martin <timm_at_africonnect.co.zm>
Date: Mon, 11 Oct 2010 14:51:58 +0200 (CAT)

----- "Daniel Stenberg" <daniel_at_haxx.se> wrote:

> On Mon, 11 Oct 2010, Tim Martin wrote:
>
> > [libssh2] 1.001111 Failure Event: -28 - Timed out waiting for SCP
> response
>
> Okay, the human readable text there is not really helpful and even
> downright
> wrong. (I'll change that in a minute.)
>
> The -28 is however more interesting. -28 equals
> LIBSSH2_ERROR_SCP_PROTOCOL,
> and if you check where that pair (error code + text) is return you
> find two
> spots in src/scp.c and both returns due to an error in
> _libssh2_channel_read().
>
> I would suggest you start by checking which of those two that fails
> and what
> the actual return code is from _libssh2_channel_read() in that case.

The call that is triggering the error is the one on line 385, and the return code from _libssh2_channel_read() is zero. I'll do a little more digging myself to see if I can trace any further what's happening immediately before this, but I don't konw if this makes any sense on its own?

Tim
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-10-11