Bug #12360 Updated: fsockopen timeout doesn't work

From: Date: Fri, 10 Aug 2001 20:16:06 +0000
Subject: Bug #12360 Updated: fsockopen timeout doesn't work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62876@lists.php.net to get a copy of this message
ID: 12360 Updated by: jeroen Reported By: hordur@modernus.is Old Status: Analyzed Status: Closed Bug Type: Sockets related Operating System: RedHat 6.2 PHP Version: 4.0.6 New Comment: I put that include in CVS, and it will be in 4.0.7 if there are no problems with it. I did limited testing, but don't know this helped. alindeman: _please_ test this... If this isn't fixed, please reopen. Previous Comments: ------------------------------------------------------------------------ [2001-08-06 18:16:02] jeroen@php.net michael@daimi.au.dk: > I have not looked into this a lot so I might be mistaken, but it > seems that the problem is that fcntl.h is not defined in main/network.c > > If I add the following lines to main/network.c it seems that timeout > works again: > > #ifndef _FCNTL_H > #include <fcntl.h> > #endif > > I'm running Debian 2.2r3 with PHP 4.0.6 > > Regards, > Michael ------------------------------------------------------------------------ [2001-07-25 09:34:30] andy@php.net I have reproduced this error. When requesting an valid address, but a port that the server does not listen on, the script hangs. (*Andy*) ------------------------------------------------------------------------ [2001-07-25 09:30:06] hordur@modernus.is or at least it doesn't time out until after a very long time.... ------------------------------------------------------------------------ [2001-07-25 09:29:17] hordur@modernus.is it never times out... ------------------------------------------------------------------------ [2001-07-25 09:24:26] andy@php.net are you saying that is eventually times out (but not a the number you specified) or are you saying it never times out. ------------------------------------------------------------------------ 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/?id=12360 Edit this bug report at http://bugs.php.net/?id=12360&edit=1

« previous php.dev (#62876) next »