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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marko at iconmedialab dot fi
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-10 16:58 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 16:00:02 2026 UTC