Subject: LIBSSH2_ERROR_OUT_OF_BOUNDARY

LIBSSH2_ERROR_OUT_OF_BOUNDARY

From: meneldor <meneldor_at_gmail.com>
Date: Mon, 23 Mar 2015 17:00:11 +0200

Hello,

i have a question about libssh2_channel_read() and
LIBSSH2_ERROR_OUT_OF_BOUNDARY.
When the blocking is disabled, any buffer size bigger than 0xf returns
LIBSSH2_ERROR_OUT_OF_BOUNDARY error. Here is the trace of the command "ls":
[libssh2] 12.046214 Conn: Writing 3 bytes on channel 3/0, stream #0
[libssh2] 12.046228 Conn: Sending 3 bytes on channel 3/0, stream_id=0
=> libssh2_transport_write plain (9 bytes)
0000: 5E 00 00 00 00 00 00 00 03 : ^........
=> libssh2_transport_write plain2 (3 bytes)
0000: 6C 73 0A : ls.
[libssh2] 12.046279 Socket: Sent 52/52 bytes at 0x28e58f0
=> libssh2_transport_write send() (52 bytes)
0000: 07 78 EF C4 34 BA 9F E1 D7 DA 3A BE 94 2A A9 46 : .x..4.....:..*.F
0010: 33 9E C8 FF F2 1A 6B 4F 00 7E 21 2E 47 2D 49 B5 : 3.....kO.~!.G-I.
0020: 6F 6F A4 97 0A E5 7E 7B E6 8C 3E 3C 8F 4A D7 F5 : oo....~{..><.J..
0030: 6E E5 3A 6B : n.:k
[libssh2] 12.046290 Conn: channel_read() wants 40000 bytes from channel 3/0
stream #0

NOTE!: channel_read() returns -37 here so i am waiting in waitsocket()

[libssh2] 12.046773 Conn: channel_read() wants 40000 bytes from channel 3/0
stream #0
[libssh2] 12.046784 Socket: Recved 52/16384 bytes to 0x28e18b0+0
=> libssh2_transport_read() raw (52 bytes)
0000: C0 B8 79 A6 B3 58 37 85 A9 36 36 90 D3 73 12 F0 : ..y..X7..66..s..
0010: 4D F3 F8 31 75 CA C5 F7 38 D3 C9 48 F0 5F 04 F3 : M..1u...8..H._..
0020: 0A 80 36 F9 11 27 18 51 D1 7C 8A F9 1B C6 21 7B : ..6..'.Q.|....!{
0030: 2C B4 EE 13 : ,...
[libssh2] 12.046796 Failure Event: -41 - transport read
libssh2_channel_read returned: -41

Thanks!

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