Req #51306 [Dup]: gethostbyaddr time limit
| From: | ToddWW at Gmail dot com | Date: | Tue, 16 Mar 2010 17:43:35 +0000 |
| Subject: | Req #51306 [Dup]: gethostbyaddr time limit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148691@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
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] aharvey@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