Subject: Re: Multiple channels and epoll(7)

Re: Multiple channels and epoll(7)

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Fri, 27 Jun 2014 10:53:19 +0200

tor 2014-06-26 klockan 23:24 -0600 skrev Eduardo Silva:

> but there is a remaining problem, when i get the notification that
> some data is available, after try to accept a channel and then read
> all channels, i need a timeout in the event loop to re-check if
> something was pending. Still wondering how to avoid that re-check.

When do you register the read event interest?

You need to register for the read event before looping over all
channels.

Regards
Henrik

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-06-27