Subject: Re: Multiple channels and epoll(7)

Re: Multiple channels and epoll(7)

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Tue, 24 Jun 2014 02:39:45 +0200

tis 2014-06-24 klockan 02:21 +0200 skrev Henrik Nordström:

> Not that I can see. You need to try to perform read/write on each active
> channel & stream to see if there is anything to perform whenever the
> session fd is active in epoll.

Thinking on this. Would it make sense to have an API to query what the
next packet in the receive queue is about? This would allow
multi-channel applications to scale better with number of channels by
avoiding to repeatedly loop over all channels (&streams) whenever there
is any activity.

Regards
Henrik

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