ASF Bugzilla – Attachment 37422 Details for
Bug 64709
mod_cgi not returning 504 properly after TimeOut
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mod_cgi
cgi_timeout-24x.diff (text/plain), 1.48 KB, created by
Joe Orton
on 2020-09-04 14:01:21 UTC
(
hide
)
Description:
mod_cgi
Filename:
MIME Type:
Creator:
Joe Orton
Created:
2020-09-04 14:01:21 UTC
Size:
1.48 KB
patch
obsolete
>Index: modules/generators/mod_cgi.c >=================================================================== >--- modules/generators/mod_cgi.c (revision 1881459) >+++ modules/generators/mod_cgi.c (working copy) >@@ -938,6 +938,13 @@ > if ((ret = ap_scan_script_header_err_brigade_ex(r, bb, sbuf, > APLOG_MODULE_INDEX))) > { >+ /* In the case of a timeout reading script output, clear >+ * the brigade to avoid a second attempt to read the >+ * output. */ >+ if (ret == HTTP_GATEWAY_TIME_OUT) { >+ apr_brigade_cleanup(bb); >+ } >+ > ret = log_script(r, conf, ret, dbuf, sbuf, bb, script_err); > > /* >Index: modules/generators/mod_cgid.c >=================================================================== >--- modules/generators/mod_cgid.c (revision 1881459) >+++ modules/generators/mod_cgid.c (working copy) >@@ -1619,6 +1619,13 @@ > { > ret = log_script(r, conf, ret, dbuf, sbuf, bb, NULL); > >+ /* In the case of a timeout reading script output, clear >+ * the brigade to avoid a second attempt to read the >+ * output. */ >+ if (ret == HTTP_GATEWAY_TIME_OUT) { >+ apr_brigade_cleanup(bb); >+ } >+ > /* > * ret could be HTTP_NOT_MODIFIED in the case that the CGI script > * does not set an explicit status and ap_meets_conditions, which
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64709
: 37422