php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24133 mysql.connect_timeout has no effect
Submitted: 2003-06-11 13:58 UTC Modified: 2003-06-14 03:14 UTC
From: nospam at unclassified dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.2 OS: Windows 2000 Pro
Private report: No CVE-ID: None
 [2003-06-11 13:58 UTC] nospam at unclassified dot de
I tried to connect to a mysql server that was not accessible. mysql_connect() gave me an error 10060, that's ok.
But it did that after abt. 20 seconds, and in conjunction with a fatal error that said my script timed out after 10 seconds. And that's although I set the 'mysql.connect_timeout' setting to 4 seconds.

It seems the 'mysql.connect_timeout' setting in my php.ini has no effect on the behaviour of mysql_connect().

I have checked the setting with ini_get() and it was correct.
I have found the bug in PHP 4.3.1, an upgrade to 4.3.2 did not help.

Can it be that connection timeouts aren't supported under Windows platform? In that case, this should be documented.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-13 16:29 UTC] georg@php.net
connect_timeout specifies the number of seconds the server is waiting for a connectpacket before he responding a bad handshake.
 [2003-06-14 03:14 UTC] nospam at unclassified dot de
huh? whatever you wanted to tell me... it's not in the PHP manual nor in my php.ini file. anyone an idea?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 22:01:26 2024 UTC