Ticket #75 (closed defect)

Opened 9 years ago

Last modified 9 years ago

libssh2_poll_channel_read doesn't work correctly

Reported by: thomaspu Owned by:
Priority: normal Milestone:
Component: Version:
Keywords: Cc: thomaspu, bagder
Blocked By: Blocks:


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.


polChannelReadBug.patch (901 bytes) - added by thomaspu 9 years ago.
libssh2_poll_channel_read bug patch file

Download all attachments as: .zip

Change History

Changed 9 years ago by thomaspu

libssh2_poll_channel_read bug patch file

comment:1 Changed 9 years ago by bagder

Can you please remake the diff with -u?

comment:2 Changed 9 years ago by thomaspu

I've commited the changes that were detailed in the previously attached patch.

Note: See TracTickets for help on using tickets.