ID:               12360
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Closed
 Bug Type:         Sockets related
 Operating System: RedHat 6.2
 PHP Version:      4.0.6
 New Comment:

[EMAIL PROTECTED]: 4.1.2 is too old; can you try a non-stable
snapshot from http://snaps.php.net/win32/.
Despite the term non-stable, it should be quite stable and
will form the base of PHP 4.3 which we are branching for QA
and the release process shortly.



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

[2002-09-28 16:18:59] [EMAIL PROTECTED]

It's now year 2002 and I'm using php 4.1.2 and neither is the timeout
parameter to the fsockopen function working properly, nor is the
socket_set_timeout function....

i've written a small monitoring program that kills php processes that
has been working too long (i use the php scripts by running them in the
console).. and the interesting thing is that when i run the same script
in several instances, they seem to hang in pairs (but NOT always).
Perhaps they try to use the same outgoing port?

and this is not something rare, i've been logging the kills and it
happens once (two kills) every 10-15 minutes, once killed they are
restarted by a loop in a batch file.

i'm using windows xp with php 4.1.2 and apache (but as i said, i'm
simply running the scripts without apache in the console, "php
script.php"..) i remember having this problem when run in linux..

i've seen many similar bugreports but nothing seem to have been done to
adress the problem..

keep up the good work,
Osman Darcan

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

[2001-08-10 16:16:06] [EMAIL PROTECTED]

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.

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

[2001-08-06 18:16:02] [EMAIL PROTECTED]

[EMAIL PROTECTED]:
> 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

or at least it doesn't time out until after a very long time....

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

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/12360

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

Reply via email to