Req #12802 [Opn->Wfx]: gethostbyname/gethostbyaddr timeout

From: Date: Sun, 23 May 2021 04:23:49 +0000
Subject: Req #12802 [Opn->Wfx]: gethostbyname/gethostbyaddr timeout
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233987@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=12802&edit=1 ID: 12802 Updated by: krakjoe@php.net Reported by: cheapsalsa at yahoo dot com Summary: gethostbyname/gethostbyaddr timeout -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Network related Operating System: * PHP Version: * Block user comment: N Private report: N New Comment: 20 years is long enough to keep anyone on the hook ... A portable implementation of these things is a project all it's own - one of them is called c-ares and is developed by cURL. While it's well known and has a nice API, it's not realistic to talk about making that a build requirement of PHP. The core implementation of these things should rely on stable operating system provided functionality, and not third party libraries. I think at some time in the past, it may have been realistic to consider redeveloping this functionality ... those days have long gone. Previous Comments: ------------------------------------------------------------------------ [2017-07-24 20:52:23] kalle@php.net @Pierre wouldn't this be possible on the Windows side of things using GetAddrInfoEx() function? I'm not sure about the Unix counterpart tho, and I guess threads are out of the questions ------------------------------------------------------------------------ [2016-08-15 18:17:37] toddww at gmail dot com 10+ years later ??? Come on. ------------------------------------------------------------------------ [2013-08-22 02:50:33] zach dot bailey at pardot dot com Please, please, please consider adding this. It's a huge scalability/performance issue anytime a call out to an external service is not bounded with a timeout. PHP users are having to resort to ridiculous workarounds to something that should be built into the core language. It's unfathomable that PHP has functions like the ability to get the time that the sun will rise for a certain date and location but it can't be bothered with having a timeout on an extremely common function. ------------------------------------------------------------------------ [2012-09-25 12:34:49] tyrael@php.net any progress on this? ------------------------------------------------------------------------ [2010-11-19 02:06:51] pajoye@php.net It will be available when committed. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=12802 -- Edit this bug report at https://bugs.php.net/bug.php?id=12802&edit=1

« previous php.bugs (#233987) next »