php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1691 blocking mode sockets override max_execution_time
Submitted: 1999-07-10 14:12 UTC Modified: 1999-07-10 16:58 UTC
From: marko at iconmedialab dot fi Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (10/07/1999) OS: RedHat Linux 6.0
Private report: No CVE-ID: None
 [1999-07-10 14:12 UTC] marko at iconmedialab dot fi
Behaviour on 3.0.9:
If a socket is in blocking mode, feof() hangs until
receiving output on the socket, overriding the maximum
execution time defined for the script. If, however,
the socket is in non-blocking mode, everything works ok.

Behaviour on the current CVS (after today's fsock.c patch):
Non-blocking mode behaves just like blocking mode,
and my scripts hang indefinitely if they don't
receive input on their open input sockets, whether
in blocking mode or not.

Desired behaviour:
when max_execution_time passes, script is terminated,
whether or not it is awaiting input from a blocking mode
socket.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-10 16:58 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 05:01:31 2024 UTC