#33524 [Opn->Bgs]: mysql_connect takes too much time connecting to an ip addr

From: Date: Thu, 30 Jun 2005 14:45:29 +0000
Subject: #33524 [Opn->Bgs]: mysql_connect takes too much time connecting to an ip addr
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81223@lists.php.net to get a copy of this message
ID: 33524 Updated by: tony2001@php.net Reported By: gonzalo at livra dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: WIN 2K PHP Version: 4.3.10 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2005-06-30 16:36:12] 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 :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33524&edit=1

« previous php.bugs (#81223) next »