Req #12802 [Com]: gethostbyname/gethostbyaddr timeout
| From: | tyra3l at gmail dot com | Date: | Thu, 18 Nov 2010 23:53:25 +0000 |
| Subject: | Req #12802 [Com]: gethostbyname/gethostbyaddr timeout | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156195@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=12802&edit=1
ID: 12802
Comment by: tyra3l at gmail dot com
Reported by: cheapsalsa at yahoo dot com
Summary: gethostbyname/gethostbyaddr timeout
Status: Open
Type: Feature/Change Request
Package: *General Issues
Operating System: Linux (N/A)
PHP Version: 4.0CVS-2001-08-16
Block user comment: N
Private report: N
New Comment:
maybe we could use some non-blocking dns library?
http://c-ares.haxx.se/
Tyrael
Previous Comments:
------------------------------------------------------------------------
[2010-11-19 00:05:31] pajoye@php.net
For the record, it is not possible to do it in PHP. These functions are
implemented by the operating systems. Without creating a thread for the
get* hosts, we won't have any control on the timeout.
------------------------------------------------------------------------
[2010-03-04 16:34:30] tyra3l at gmail dot com
bump
------------------------------------------------------------------------
[2009-03-04 19:19:12] adifranco at tagged dot com
Any intent to fix this? This kind of indeterminism is very crippling to
trying to use these functions in a feature that interacts with the user.
------------------------------------------------------------------------
[2003-08-10 22:54:12] grimtraffic at hotmail dot com
To be honest, no timeout has really made it hard to log users. There is
no point of logging IP's because they change too often for dial-up
users, and with my page timing out every third time someone goes to it,
I now have troubles.
By the way, 2 out of 3 who use gethostbyaddr have an issue with it
timing out constantly.
------------------------------------------------------------------------
[2003-02-05 06:19:54] sergi at millorsoft dot es
Is this bug still open? I think it's a really important bug and can
cause very long retards when the DNS lookup doesn't respond or some DNS
server is unreacheable.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=12802
--
Edit this bug report at http://bugs.php.net/bug.php?id=12802&edit=1