Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45884 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42095 invoked from network); 28 Oct 2009 08:26:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2009 08:26:54 -0000 X-Host-Fingerprint: 123.118.104.37 unknown Received: from [123.118.104.37] ([123.118.104.37:29940] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/C0-37512-D4008EA4 for ; Wed, 28 Oct 2009 03:26:54 -0500 Message-ID: To: internals@lists.php.net Date: Wed, 28 Oct 2009 16:26:55 +0800 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Posted-By: 123.118.104.37 Subject: PHP socket automatically shuts down after ? hours of idling? From: jiangcat@gmail.com (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). I've set the php execution time limit to 0, and running this script from shell in the background of CentOS 5.3. Can't think of any other reason causing this strange behavior. Any hint? Thx!