Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-02 Thread Evgeny Grin
You will need something like: - size_t N = 0; /* number of inited daemons */ size_t n = 0; /* current worker */ MHD_Daemon* daemons[MAX_DAEMONS]; daemons[N++] = MHD_start_daemon (MHD_USE_NO_LISTEN_SOCKET | MHD_USE_SELECT_INTERNALLY, ); while (processingAllowed()) {

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-02 Thread silvioprog
Oops, In my pseudo code I meant: static int ahc_echo(void * cls, struct MHD_Connection * connection ... other params) { if (isSomeFunctionOfMyAppResponding()) { do something ... } else { create a new thread *without* blocking server and finally do something ... } }

Re: [libmicrohttpd] Out of band authentication with libmicrohttpd

2016-12-02 Thread Christian Grothoff
It actually shouldn't be hard to add, we just never had anyone asking for it. I don't see how it would hurt to support it either. But I'll have to read the spec in detail to see what would need to be done (and I won't get to that this year.) On 12/01/2016 07:28 PM, Daniel Tweed, Mr wrote: > I'm