[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

channel_select blocks until data received, despite timeout.


channel_select allows a timeout value to be specified. This timeout is used in the select() call, however is not honored because the code requires data to be available on the channel before channel_select returns.

channels.c, starting line 2196.

First, the channels are polled. If no data is received, the code goes on to block with select() using the given timeout. When select returnes, the code loops back around to check for data on one of the requested channels, and if there is none, continues on to the select() using the given timeout. When select returns, ....

When trying to create a bug report: Submission rejected as potential spam (Akismet says content is spam)

-Andrew
libssh.20.awinder@xxxxxxxxxxxxxxx




Follow-Ups:
Re: channel_select blocks until data received, despite timeout.Aris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org