Re: PHP socket automatically shuts down after ? hours of idling?

From: Date: Mon, 02 Nov 2009 02:44:10 +0000
Subject: Re: PHP socket automatically shuts down after ? hours of idling?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-45935@lists.php.net to get a copy of this message
Hi what is your platform ?2. Provide a working, migth be a recent problem regarding x socket, can you observe and dump your tcp connexion? On Sunday, November 1, 2009, Chris Jiang <jiangcat@gmail.com> wrote: > Hi Hannes, > > It just shuts down the socket server without any error, warning or notice.. I'm sorry that > I can't provide a case for reproduction, because I don't even know where the problem is, > and where I should shorten the script to. However, there is a strange behavior that might help to > target the trouble: > > 1) The socket server runs fine when it starts, as long as there are ppl keeping connected to > the server. > > 2) After about 3 hours of idling (I couldn't count the exact time), when someone connect > to the socket, it still works, for the FIRST connection. > > 3) Then, the server shuts down. > > I tried to log what happend during the operation, but didn't find anything useful. :( > > Any hint on this? > > Thanks! > > Chris Jiang > > > > 2009/10/28 Chris Jiang <jiangcat@gmail.com>: > > Hi all, here is another question that made me confused. I'm not sure if > it's a bug or what, but I can't find an answer from the search engines. > > I've made a chat server using php socket features, and it works pretty > well as I've expected. However, there is a weird thing happening: The > server shuts down automatically after about 3 hours of idling (no > connections). > > > Without any notices/warnings/errors? Do you have a shortish reproduce case? > > -Hannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#45935) next »