Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80472 invoked by uid 1010); 7 Jan 2008 23:54:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80457 invoked from network); 7 Jan 2008 23:54:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2008 23:54:54 -0000 Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.185 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [129.41.69.185] ([129.41.69.185:33080] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/42-64132-CCBB2874 for ; Mon, 07 Jan 2008 18:54:54 -0500 Received: (qmail 8552 invoked from network); 7 Jan 2008 23:54:49 -0000 Received: from unknown (HELO mail.dealnews.com) (10.1.1.7) by -H with ESMTPS (DHE-RSA-AES256-SHA encrypted); 7 Jan 2008 23:54:49 -0000 Received: (qmail 31949 invoked from network); 7 Jan 2008 23:54:49 -0000 Received: from 17.2.1.10.in-addr.arpa (HELO [10.1.2.17]) (brianm@[10.1.2.17]) (envelope-sender ) by mail.dealnews.com (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 7 Jan 2008 23:54:49 -0000 Message-ID: <4782BBC8.1070301@dealnews.com> Date: Mon, 07 Jan 2008 17:54:48 -0600 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: mysql.connect_timeout default From: brianm@dealnews.com (Brian Moon) I would like to propose we set this default value to something more appropriate for a web app. It is currently 60 seconds. That is a really long time for a web page to wait to find a mysql server, IMO. And in the spirit of PHP being web first, I think it should be shorter. The place where this is an issue is when the server is down completely. This bit me in the butt today. If the server is up, but mysqld is not, PHP will disconnect immediately. But if there is no server answering on that IP address, PHP will wait `mysql.connection_timeout` seconds before telling you it could not connect to the server. FWIW, the default for MySQL server is 10 seconds (increased from 5 last fall) for a connection timeout. I personally like 5 seconds for the default unless someone knows a reason this is a bad idea. Is there some other internal trigger to the connection that could cause this to be hit at 5 seconds? Other thoughts? -- Brian Moon Senior Developer ------------------------------ When you care enough to spend the very least. http://dealnews.com/