libmicrohttpd
[Top][All Lists]
Advanced

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

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


From: silvioprog
Subject: Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?
Date: Fri, 2 Dec 2016 12:38:25 -0300

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 ...
  }
}

MHD_start_daemon(MHD_USE_SELECT_INTERNALLY ...

^^'

On Thu, Dec 1, 2016 at 6:42 PM, silvioprog <address@hidden> wrote:
Oops,

On Thu, Dec 1, 2016 at 6:39 PM, silvioprog <address@hidden> wrote:
[...]
. fastcgiapp1 rutting on port 9000; // primary
. fastcgiapp2 rutting on port 9001. // backup

"... running on port ..."

Supposing this pseudo code:

I meant "A pseudo mode:"

--
Silvio Clécio

reply via email to

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