Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:45933 php.internals:45934 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62790 invoked from network); 2 Nov 2009 02:27:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2009 02:27:16 -0000 X-Host-Fingerprint: 123.118.102.6 unknown Received: from [123.118.102.6] ([123.118.102.6:2508] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/27-17998-3834EEA4 for ; Sun, 01 Nov 2009 21:27:16 -0500 To: internals@lists.php.net,Hannes Magnusson Message-ID: <4AEE437F.80807@gmail.com> Date: Mon, 02 Nov 2009 10:27:11 +0800 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 CC: internals@lists.php.net References: <7f3ed2c30911011032u3c6e0772w1f543eeca854f505@mail.gmail.com> In-Reply-To: <7f3ed2c30911011032u3c6e0772w1f543eeca854f505@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 123.118.102.6 Subject: Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling? From: jiangcat@gmail.com (Chris Jiang) 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 : >> 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