Re: Bug #12773 Updated: gethostbyname with timeout
| From: | Stig Venaas | Date: | Mon, 05 Nov 2001 09:21:17 +0000 |
| Subject: | Re: Bug #12773 Updated: gethostbyname with timeout | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69636@lists.php.net to get a copy of this message | ||
On Sun, Nov 04, 2001 at 09:09:30PM -0000, sander@php.net wrote:
> Dupe of 12802, which has more info so I'm closing this one.
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-08-15 16:46:14] richard@phase.org
>
> gethostbyname can appear to hang indefinitely; I assume that this happens if the expected DNS
> responses are not forthcoming. Unfortunately if this happens in a webpage it can cause a cache or
> browser timeout, losing the entire page. A variant of this function with an optional timeout
> parameter would solve this problem.
I think it's very hard to implement this in a portable way. I would be
happy to be proven wrong (:
Stig