Req #51306 [Opn->Dup]: gethostbyaddr time limit

From: Date: Tue, 16 Mar 2010 09:08:03 +0000
Subject: Req #51306 [Opn->Dup]: gethostbyaddr time limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148666@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51306&edit=1

 ID:               51306
 Updated by:       aharvey@php.net
 Reported by:      ToddWW at Gmail dot com
 Summary:          gethostbyaddr time limit
-Status:           Open
+Status:           Duplicate
 Type:             Feature/Change Request
-Package:          Performance problem
+Package:          Network related
 Operating System: CentOS
 PHP Version:      5.2.13

 New Comment:

Already requested in bug #12802.


Previous Comments:
------------------------------------------------------------------------
[2010-03-16 10:01:56] ToddWW at Gmail dot com

Description:
------------
When using gethostbyaddr with an IP it will return a host name just what
we want. However, if there is no host name to return it stalls and takes
20-30 seconds PER IP lookup. If it CAN return a host name it does so in
<1 second.

Example - I can loop through 5 IPs that resolve to hostnames in .7
seconds. This includes database calls, and updates.

Example 2 - I can loop through 5 IPs that DO NOT resolve to hostnames in
3 minutes!!! 

This needs to be fixed, or a second parameter option for max look-up
time per-ip.

gethostbyaddr(IP,Max_Execution_Time) as example.




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51306&edit=1


Thread (3 messages)

« previous php.bugs (#148666) next »