Ticket #75 (closed defect)
libssh2_poll_channel_read doesn't work correctly
|Reported by:||thomaspu||Owned by:|
The libssh2_poll_channel_read doesn't read both normal and extended data when called like so...
libssh2_poll_channel_read( <libssh2 channel ptr>, 1);
As taken from the wiki:
"...When set to a non-zero value, the extended data stream buffers will be scanned as well"
I read that as: if you set the 2nd item to a non-zero value, both normal and extended data is read. This isn't the case, it reads normal data or extended but Not both.
Attached is a patch to fix this issue.