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

 ID:               51306
 User updated by:  ToddWW at Gmail dot com
 Reported by:      ToddWW at Gmail dot com
 Summary:          gethostbyaddr time limit
 Status:           Duplicate
 Type:             Feature/Change Request
 Package:          Network related
 Operating System: CentOS
 PHP Version:      5.2.13

 New Comment:

Considering that was almost 10 years ago and no fix I thought we might
want to get this taken care of. It seems like a very simple fix.


Previous Comments:
------------------------------------------------------------------------
[2010-03-16 10:08:03] ahar...@php.net

Already requested in bug #12802.

------------------------------------------------------------------------
[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

Reply via email to