]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Implement the "CGI bucket" in mod_cgi to handle stderr output during
authorJoe Orton <jorton@apache.org>
Sun, 18 Apr 2004 16:02:57 +0000 (16:02 +0000)
committerJoe Orton <jorton@apache.org>
Sun, 18 Apr 2004 16:02:57 +0000 (16:02 +0000)
commitd4cb879b8f929dc2590e8ea0c67fddbec7709d41
tree0a512f884deaf51716dbc48a82af166d96ae74ad
parentd81496e92c59d8162f606f32fba2c56596c61001
Implement the "CGI bucket" in mod_cgi to handle stderr output during
script execution, preventing deadlock if stderr output fills the pipe
buffer:

* modules/generators/mod_cgi.c (log_script_err): Return a read error.
(cgi_bucket_create, cgi_bucket_dup, cgi_read_stdout, cgi_bucket_read):
New functions.
(cgi_handler): Use new CGI bucket rather than a pipe bucket if
APR_FILES_AS_SOCKETS; use zero read timeout from stdout/stderr during
script execution.

PR: 22030
Submitted by: Joe Orton, Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103437 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/generators/mod_cgi.c