[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
channel_select blocks until data received, despite timeout.
- Subject: channel_select blocks until data received, despite timeout.
- From: libssh.20.awinder@xxxxxxxxxxxxxxx
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 19 Feb 2010 12:59:28 -0700
- To: libssh@xxxxxxxxxx
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)
|Re: channel_select blocks until data received, despite timeout.||Aris Adamantiadis <aris@xxxxxxxxxxxx>|