www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples

Archive Index This month's Index

Subject: Doesn't get complete data after channel_exec()

Doesn't get complete data after channel_exec()

From: Sunjith P S <sunjithps_at_gmail.com>
Date: Tue, 28 Jul 2009 09:47:32 +0530

Hi,

channel_read() sometimes returns 0 after channel_exec() and loses some data. Figured out it was due to channel_read not reading when remote has closed connection. Disabling remote closed check in the while loop fixed the issue. The diff is attached.

Thank you.

Regards,
Sunjith

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2009-07-28

the libssh2 team