[Top][All Lists]

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

Re: [libmicrohttpd] Expose the fdset events

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Expose the fdset events
Date: Wed, 03 Jun 2015 10:08:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

Well, the easiest way you can do it now is just ask MHD to run in
'EPOLL' mode and grab the epoll() FD. Then you can select/poll/epoll on
the MHD epoll() FD.  You won't get detailed information about add/remove
events from MHD, but you'll then only have to deal with one FD for all
of MHD in your event set ever, and your overall big-O complexity for all
operations should also be perfect.

My 2 cents


On 06/03/2015 04:33 AM, Simon Newton wrote:
> Digging up a thread from the past...
> Is the codebase in a better shape to make this change now? We've run
> into this again now that we've switched to using kevent rather than
> select.
> If you're looking for existing APIs to model this from,  Avahi has a
> watch API [1] which provides fd notifications, and that has worked
> well for us.
> [1]
> Simon

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]