From 2ac076e97e3ab24a9fde22380a2844b251bce341 Mon Sep 17 00:00:00 2001 From: robs Date: Mon, 4 Mar 2002 22:31:01 +0000 Subject: [PATCH] Handle another case where an error occurs but the application has sent a complete response. --- mod_fastcgi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mod_fastcgi.c b/mod_fastcgi.c index 1623f77..a8f8a2b 100644 --- a/mod_fastcgi.c +++ b/mod_fastcgi.c @@ -3,7 +3,7 @@ * * Apache server module for FastCGI. * - * $Id: mod_fastcgi.c,v 1.125 2002/03/04 02:29:33 robs Exp $ + * $Id: mod_fastcgi.c,v 1.126 2002/03/04 22:31:01 robs Exp $ * * Copyright (c) 1995-1996 Open Market, Inc. * @@ -1305,6 +1305,14 @@ static int server_error(fcgi_request *fr) int rv; request_rec *r = fr->r; + if (! fr->exitStatusSet + && fcgi_buf_add_fd(fr->serverInputBuffer, fr->fd) > 0 + && fcgi_protocol_dequeue(r->pool, fr) == OK + && fr->parseHeader == SCAN_CGI_READING_HEADERS) + { + process_headers(r, fr); + } + #if defined(SIGPIPE) && MODULE_MAGIC_NUMBER < 19990320 /* Make sure we leave with Apache's sigpipe_handler in place */ if (fr->apache_sigpipe_handler != NULL) -- 2.11.4.GIT