[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] external event loop mode without using select?
From: |
Greg Stark |
Subject: |
[libmicrohttpd] external event loop mode without using select? |
Date: |
Tue, 8 Feb 2022 17:49:39 -0500 |
I have an existing event loop and other events I need to handle so I
was planning to use external select mode. However I'm surprised that
MHD_get_fdset is the only way to get the set of file descriptors.
It seems pointless to have MHD loop over its file descriptors
constructing an fdset and then I have to loop over the fdset to pick
out the file descriptors to add them to the event loop handler (which
preferentially uses epoll, kqueue, or poll).
I'm not expecting a large pool of web connections, in fact I would
rarely have more than one concurrent connection however there are a
lot of file descriptors used elsewhere in the application so the
maximum fd number might actually be large. fd_sets are a particularly
impractical api for this.
--
greg
- [libmicrohttpd] external event loop mode without using select?,
Greg Stark <=