Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:46169 php.internals:46170 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42946 invoked from network); 24 Nov 2009 08:09:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2009 08:09:18 -0000 X-Host-Fingerprint: 218.30.24.254 unknown Received: from [218.30.24.254] ([218.30.24.254:15841] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/C1-29930-DA49B0B4 for <0xcafefeed@gmail.com>; Tue, 24 Nov 2009 03:09:18 -0500 To: internals@lists.php.net,mm w <0xcafefeed@gmail.com> Message-ID: <4B0B94AF.3040108@gmail.com> Date: Tue, 24 Nov 2009 16:09:19 +0800 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 CC: internals@lists.php.net, Hannes Magnusson References: <7f3ed2c30911011032u3c6e0772w1f543eeca854f505@mail.gmail.com> <4AEE437F.80807@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 218.30.24.254 Subject: Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling? From: jiangcat@gmail.com (Chris Jiang) Hi, sorry for replying late, but my authentication to reply mails to php.net newsgroup seems had a problem. I couldn't reply to this mail. Weird. :( My platform is Centos 5.2 with PHP 5.2.8 and Apache 2.2.14. Unfortunately, I don't know how to dump the tcp connection info. Any hint? Thanks! mm w 写道: > 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 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 : >> >> 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 >> >>