ID:               24867
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tomato at pisem dot net
-Status:           No Feedback
+Status:           Bogus
 Bug Type:         Sockets related
 Operating System: FreeBSD-4.7-Stable
 PHP Version:      4.3.2
 New Comment:

We can't put a timeout in gethostbyname().
The connect() timeout works fine on sane systems.
Note that FreeBSD has issues when connecting to filtered remote
addresses; this is reportedly fixed in FreeBSD 5.3.
There is no bug here that PHP can fix; move along.


Previous Comments:
------------------------------------------------------------------------

[2005-01-14 20:40:28] shelby at coolpage dot com

[EMAIL PROTECTED] I know you love to close bugs, but this is ridiculous. 
Do a search for "fsockopen timeout" at bugs.php.net.  You will find
that [EMAIL PROTECTED] has closed SEVERAL of similar bug reports without
ever verifying the bug was fixed:

http://bugs.php.net/bug.php?id=21193
http://bugs.php.net/bug.php?id=10765
http://bugs.php.net/bug.php?id=7420
http://bugs.php.net/bug.php?id=12360

This bug still exists and with a 15 sec timeout, it just hangs
forever.

php -v
PHP 4.3.10 (cli) (built: Jan 12 2005 13:10:04)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

FreeBSD 4.8-STABLE (PAIRqm) #0: Fri Oct  3 11:10:15 EDT 2003

Welcome to pair Networks, Inc.

------------------------------------------------------------------------

[2003-08-06 11:05:46] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2003-07-30 11:44:26] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

------------------------------------------------------------------------

[2003-07-30 06:06:07] tomato at pisem dot net

Description:
------------
I'm trying to do socket connection with group of servers and for the
server's that did not work function fsockopen() runs around 300-500 sec
even the timeout is 10 sec.
i heard the problem was that this timeout used only in connect
function, but not in gethostbyname
i read that you fixed this problem long time ago.. but my version is
PHP 4.3.2RC4 (cli) (built: Jun 19 2003 14:41:09)
and the problem is still exists



 

Reproduce code:
---------------
$fp = fsockopen($href,$port,$errno,$errstr,10);


Expected result:
----------------
connect or failed to connect after 10 seconds or less

Actual result:
--------------
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No
address associated with hostname in /.../script.php


------------------------------------------------------------------------


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

Reply via email to