libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD in "worker processes" mode


From: Junker, Gregory
Subject: Re: [libmicrohttpd] MHD in "worker processes" mode
Date: Fri, 10 Jun 2016 01:03:14 +0000

On Thu, 2016-06-09 at 21:04 -0300, silvioprog wrote:
> Hello,
> 
> Please take a look at this question and the first answer:
> 
> http://askubuntu.com/questions/399431/how-many-nginx-processes-should
> -there-be
> 
> It raise a question: can I use the worker processes approach with
> MHD? If I understood, it need to up two or more process, but when I
> try that: "Failed to bind to port 8080: Address already in use".
> 
> It's just a curious, I don't want to use that. :-D
> 
> -- 
> Silvio Clécio

The way nginx (and Apache, and...) use multiple worker processes is not
to have each bind to the same listen port (which as you found is not
possible), but instead to have one master server listen on, using your
example, 8080, and have each worker handle incoming connection request
fulfillment. They (master and workers) typically are communicating with
each other via UNIX sockets or shared memory.

HTH
Greg

reply via email to

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