#33524 [NEW]: mysql_connect takes too much time connecting to an ip addr
| From: | gonzalo at livra dot com | Date: | Thu, 30 Jun 2005 14:36:13 +0000 |
| Subject: | #33524 [NEW]: mysql_connect takes too much time connecting to an ip addr | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-81222@lists.php.net to get a copy of this message | ||
From: gonzalo at livra dot com
Operating system: WIN 2K
PHP version: 4.3.10
PHP Bug Type: MSSQL related
Bug description: mysql_connect takes too much time connecting to an ip addr
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 :)
--
Edit bug report at http://bugs.php.net/?id=33524&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33524&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33524&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33524&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33524&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33524&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33524&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33524&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33524&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33524&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33524&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33524&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33524&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33524&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33524&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33524&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33524&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33524&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33524&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33524&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33524&r=mysqlcfg