Subject: Re: Cannot set up sftp connection?

Re: Cannot set up sftp connection?

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Fri, 3 Jul 2009 11:14:04 +0200

2009/7/2 Daniel Stenberg <daniel_at_haxx.se>

> On Thu, 2 Jul 2009, Steven Van Ingelgem wrote:
>

I checked further and added a lot of debug statements where I got this from:
[libssh2] 1.289800 Transport: [_libssh2_transport_read] remainbuf: 1448
[libssh2] 1.290132 Transport: [_libssh2_transport_read] numbytes: 1448
[libssh2] 1.290415 Transport: [_libssh2_transport_read] p->total_num: 0,
blocksize: 16
[libssh2] 1.290664 Transport: [_libssh2_transport_read] encrypted: 1
[libssh2] 1.290955 Transport: [_libssh2_transport_read] p->readidx: 0,
blocksize: 16, new: 16
[libssh2] 1.291196 Transport: [_libssh2_transport_read] p->packet_length:
13036, p->padding_length: 19
[libssh2] 1.291504 Transport: [_libssh2_transport_read] p->total_num: 13055,
LIBSSH2_PACKET_MAXPAYLOAD: 40000
[libssh2] 1.291792 Transport: [_libssh2_transport_read] remainpack: 13044,
numbytes: 1432
[libssh2] 1.292183 Transport: [_libssh2_transport_read] remainpack: 11620
[libssh2] 1.292347 Transport: [_libssh2_transport_read] loop: 0
[libssh2] 1.292649 Conn: [channel_read] channel->read_state: 2,
libssh2_NB_state_jump1: 11
[libssh2] 1.292954 Conn: [channel_read] *channel->read_packet: 0x00000000*,
bytes_read: 0, buflen: 4
[libssh2] 1.293210 Conn: [channel_read] bytes_read: 0

For some reason in channel_read, the "session->packets.head" is NULL, and I
think because of that it isn't going into the function which reads the
actual packet. But I think this is weird because there is data read from the
stream?

This is done in blocking mode.
non-blocking mode is way too slow... It took me more than 1 hour to list 10k
files on my ssh server, whereas the blocking mode before listed that in
around 0.5 minute...

Grtz,
Steven

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-03