Subject: Re: [libssh2] Hanging in libssh2_channel_free?

Re: [libssh2] Hanging in libssh2_channel_free?

From: Cary Fitzhugh <cfitzhugh_at_anystream.com>
Date: Tue, 8 May 2007 16:24:26 -0400

So it finally stopped - and I can see what it supposedly died on:

 

* Failed to stop libssh2 sftp subsystem

[libssh2] Transport: Disconnecting: reason=11, desc=Shutdown, lang=

=> libssh2_packet_write plain (21 bytes)

0000: 01 00 00 00 0b 00 00 00 08 53 68 75 74 64 6f 77 .........Shutdow

0010: 6e 00 00 00 00 n....

=> libssh2_packet_write send() (52 bytes)

0000: 55 48 7c 84 f9 5f 0d 1a 7d 37 97 b5 c5 47 42 cb UH|.._..}7...GB.

0010: b2 a5 80 66 12 d6 37 d7 97 e6 be dd b4 02 cb 02 ...f..7.........

0020: 34 e4 36 9d 71 ac fa 06 3f 39 28 1e 22 7e 85 3b 4.6.q...?9(."~.;

0030: fa 0d 68 2c ..h,

[libssh2] Transport: Freeing session resource

[libssh2] Connection: Freeing channel 0/0 resources

[libssh2] Transport: Looking for packet of type: 94

[libssh2] Transport: Looking for packet of type: 95

* Closing connection #0

 

Any ideas?

Thanks -

Cary FitzHugh

 

________________________________

From: Cary Fitzhugh
Sent: Tuesday, May 08, 2007 4:16 PM
To: 'libssh2-devel_at_lists.sourceforge.net'
Subject: Hanging in libssh2_channel_free?

 

Hello,

I'm using the 0508 libssh2 snapshot with curl's snapshot from 0507. And
from all that I can tell, libssh2 goes into a black hole when it tries
to finish up the SFTP connection.

I can see the file moved across, all the data is present, but the
libssh2 debug output looks like this - and then it just hangs. Curl is
waiting for it to return from the libssh2_sftp_close() call.

So my file is transferred, but the sftp_close() hasn't returned so my
program can't continue on.

 

I can't imagine that no one has tried to upload with libssh2 over SFTP
with curl, but maybe that is the case. I'm hoping it is a configuration
step I'm missing.

 

Any ideas?

Thanks so much,

Cary FitzHugh

Anystream, Inc.

 

..... (Tons of output from the transfer) .....

 

[libssh2] Transport: Packet type 94 received, length=37

[libssh2] Connection: 28 bytes received for channel 0/0 stream #0

[libssh2] Connection: Setting blocking mode on channel 0/0 to 0

[libssh2] Connection: Reading 4 of buffered data from 0/0/0

[libssh2] SFTP Subsystem: Data begin - Packet Length: 24

[libssh2] Connection: Attempting to read 24 bytes from channel 0/0
stream #0

[libssh2] Connection: Setting blocking mode on channel 0/0 to 0

[libssh2] Connection: Setting blocking mode on channel 0/0 to 0

[libssh2] Connection: Reading 24 of buffered data from 0/0/0

[libssh2] Connection: Unlinking empty packet buffer from channel 0/0

[libssh2] Connection: Queueing 28 bytes for receive window adjustment
for channel 0/0

[libssh2] SFTP Subsystem: Received packet 101

[libssh2] SFTP Subsystem: Asking for 101 packet

[libssh2] Connection: Freeing channel 0/0 resources

[libssh2] Connection: Closing channel 0/0

=> libssh2_packet_write plain (5 bytes)

0000: 61 00 00 00 00 a....

=> libssh2_packet_write send() (36 bytes)

0000: f4 e1 81 28 a1 76 25 b5 6b 28 35 3c ac b4 f0 86 ...(.v%.k(5<....

0010: ba 6a 45 5f 11 19 b3 7a 20 e8 51 d0 db 78 c1 48 .jE_...z .Q..x.H

0020: 10 83 fa e0 ....

[libssh2] Connection: Setting blocking mode on channel 0/0 to 1

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-05-08