Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45935 Return-Path: <0xcafefeed@gmail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66036 invoked from network); 2 Nov 2009 02:44:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2009 02:44:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=0xcafefeed@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=0xcafefeed@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 0xcafefeed@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:58852] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/C7-17998-D774EEA4 for ; Sun, 01 Nov 2009 21:44:13 -0500 Received: by bwz5 with SMTP id 5so5949674bwz.23 for ; Sun, 01 Nov 2009 18:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yHJnZ1R9OhbDKRDtjwsm1JbdN8Zgu4OcfYxhgcf3Nn0=; b=Y9mF0izHmYVAqloRitKk5VkGcMvnNbR8prYqjqqETdH6OrFlFeiCS9UGQMngst/VVX 36OMJ5aAFWkXbkn7S+PMGQwSg9/wPNqVf1xoZ28vWsuQhJn/Iko4HSbfTU2T73rlJl3w XNo0phkBjElYr59eLMYRNcAdGIJOTRjngso5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=GziRqSuAUd0esoWTkxI5URkdEYeLWeopP6tc6JWXDAbg9vs1kV/qpgu1IgB1wxGGfm +ivh1IQkyRZ3egF/9ynUJNlU3GwhwPMR1cdWj4B7NOt/rrHD/om+IUZlV3DlRZTcT8k0 ZdYoc3AKNQEA4eqTfO/wPJxLUc9jENIXFTmM8= MIME-Version: 1.0 Received: by 10.204.25.152 with SMTP id z24mr3499807bkb.44.1257129850334; Sun, 01 Nov 2009 18:44:10 -0800 (PST) In-Reply-To: <4AEE437F.80807@gmail.com> References: <7f3ed2c30911011032u3c6e0772w1f543eeca854f505@mail.gmail.com> <4AEE437F.80807@gmail.com> Date: Sun, 1 Nov 2009 18:44:10 -0800 Message-ID: To: Chris Jiang Cc: internals@lists.php.net, Hannes Magnusson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling? From: 0xcafefeed@gmail.com (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 e= ven know where the problem is, and where I should shorten the script to. Ho= wever, 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 k= eeping 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 anythin= g 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 cas= e? > > -Hannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >