Re: Persistent connections

From: Date: Fri, 25 Oct 2013 12:32:27 +0000
Subject: Re: Persistent connections
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-322373@lists.php.net to get a copy of this message
On 25 Oct 2013, at 12:51, Nibin V M <nibinvm@gmail.com> wrote: > Thank you for the quick response Stuart...one more doubt..at > http://php.net/manual/en/features.persistent-connections.php they > states > > ========= > This means that when the same client makes a second request to the server, it may be served by > a different child process than the first time. When opening a persistent connection, every following > page requesting SQL services can reuse the same established connection to the SQL server > ========= > > Is the persistent connection pool is re-used between apache child processes ? No, connections are not shared between PHP processes. Nothing is shared between PHP processes. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > On Fri, Oct 25, 2013 at 3:54 PM, Stuart Dallas <stuart@3ft9.com> wrote: > On 25 Oct 2013, at 11:10, Nibin V M <nibinvm@gmail.com> wrote: > > > I have been reading docs and many are telling that persistent connections > > are kept open indefinitely. But I found in PHP docs that it will not close > > after script execution like requesting a page; so should it close after > > the request is over? > > > > So when exactly a persistent connection should close? > > > > Please advice. > > A persistent connection is closed when the PHP process ends, or it gets disconnected by the server-side or due to a network error. Attempting to explicitly close a persistent connection will do nothing without complaining. > > -Stuart > > -- > Stuart Dallas > 3ft9 Ltd > http://3ft9.com/ > > > > -- > Regards.... > > Nibin. > > http://TechsWare.in

« previous php.general (#322373) next »