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

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Oct 2010 14:27:06 +0200 (CEST)

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.

With that info at hand, we can dig deeper...

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