News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Brian Moon's Blog:
PHP's MySQL connection timeout
January 14, 2008 @ 12:59:00

In the process of debugging one of his scripts, Brian Moon came across a default setting (and problem) in the MySQL extension that didn't seem to make much sense to him:

There are several reasons that PHP could not be able to connect to MySQL. [...] Or, perhaps the entire server is offline.

The mysql.connect_timeout setting in the php.ini is supposed to handle this sort of instance, but the default is set tpo 60 seconds. It's only apparently used when the server is completely offline and, in his opinion, is set way too high. He's proposing a patch to the MySQL extension to change this setting's default to shorten it to something a bit more reasonable.

0 comments voice your opinion now!
mysql extension timeout server offline default mysql extension timeout server offline default



Similar Posts

Jacob Santos' Blog: Would PHP benefit from JIT compilation?

DevShed: Using Advanced Functions to Maintain the State of Applications with PHP Sessions

Brian Moon's Blog: PHP's MySQL connection timeout

Job Posting: PoR, Inc Seeks PHP/MySQL Developer (Telecommute)

DevShed: Handling MySQL Data Set Failures in PHP 5


Community Events







Don't see your event here?
Let us know!


book developer code ajax PEAR job package application conference security releases release cakephp mysql framework zendframework zend database PHP5 example

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework