httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Cliff Skolnick)
Subject Re: non-forking again
Date Mon, 13 Mar 1995 23:51:52 GMT
On Mar 13, 11:59pm, Rob Hartill wrote:
} Having all N processes listenening to the port simultaneously
} doesn't seem cause any problems, but I've set it up so that 
} they all ask a parent process if they are allowed to accept()
} something. 
} Either way works just fine, but somehow I suspect it can't
} be this easy - or can it ?

Agh, yes it *is* that easy :-)  What for of IPC are you using?
BSDI (and others) lack all forms of system V IPC.

The problem was only with in MP systems (well at least solrais 2.x and
SGI),  If multiple processes did an accept, it was not defined what
would happend.  The good old socket interface was written before MP
machines were the norm.  The solution was to make sure only one process
was doing an accept on the initial socket at a time.

} if you load    it'll tell you what
} process number is running - I've set N=5, so if you tie up
} some of the connections with telnet, you'll see that the server
} is eventually forceed to run all the processes.

Have you tested this on an MP machine yet?

View raw message