Re: xinetd vs php socket server

From: Date: Mon, 28 Mar 2011 23:24:57 +0000
Subject: Re: xinetd vs php socket server
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-312112@lists.php.net to get a copy of this message
"It works pretty well until its under attack by the spammers." Can you elaborate/explain further? b. On 29 March 2011 01:14, Curtis Maurand <curtis@maurand.com> wrote: > > > Nathan Nobbe wrote: > > On Mon, Mar 28, 2011 at 3:34 PM, Bostjan Skufca <bostjan@a2o.si> wrote: > > > >> If you need high performance you probably already know that it will be > >> very > >> expensive CPU wise if workers are spawned on each request. If you don't, > >> I > >> would not bother with daemon and just use xinetd. You can always add > >> daemon-handling stuff later on. > >> > >> Well I do hope you find a good working solution with as little > >> inconvenience as possible, > >> b. > > > > > > hmm, wouldn't both the solutions most likely be forking? php daemon would > > fork since threading isn't supported, and xinetd, probly best to have it > > fork for the same reason apache is typically configured to fork. right? > > Speak for yourself. I've always configured my systems to thread. Since > IBM rewrote the threading library several years back (NPTL), Theading > works. I use the threading version of apache and threading is enabled in > PHP. > > It works pretty well until its under attack by the spammers. > > --Curtis

« previous php.general (#312112) next »