php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33524 mysql_connect takes too much time connecting to an ip addr
Submitted: 2005-06-30 16:36 UTC Modified: 2005-06-30 16:55 UTC
From: gonzalo at livra dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.3.10 OS: WIN 2K
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gonzalo at livra dot com
New email:
PHP Version: OS:

 

 [2005-06-30 16:36 UTC] gonzalo at livra dot com
Description:
------------
Using mysql_connect, or mysql_pconnect to an IP address, it takes too much time! (4 seconds to connect!)..it could be an reverse lookup problem...if u add an entry on "Hosts" file, and u reference to this entry, it fly! (like pelanne says in his post: http://ar2.php.net/manual/es/function.mssql-connect.php#53620)

Reproduce code:
---------------
$link = mssql_connect("10.0.0.1,1044", "user", "Pass");

Expected result:
----------------
the same result, but faster

Actual result:
--------------
slow connection :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-30 16:45 UTC] tony2001@php.net
PHP doesn't do any referse lookups. 
If the underlying library does them (and it's slow for you), that's definitely not PHP problem and we can't fix it.
 [2005-06-30 16:55 UTC] gonzalo at livra dot com
ok thanks!
i will try to contact people who makes "mssql" library
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC