FreeBSD Bugzilla – Attachment 204978 Details for
Bug 238488
[patch] www/apache24 upstream fix for mod_reqtimeout.c missing default setting for RequestReadTimeout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix regression with RequestReadTimeout default setting
apache-bug-63325.diff (text/plain), 3.44 KB, created by
Palle Girgensohn
on 2019-06-11 08:00:01 UTC
(
hide
)
Description:
Fix regression with RequestReadTimeout default setting
Filename:
MIME Type:
Creator:
Palle Girgensohn
Created:
2019-06-11 08:00:01 UTC
Size:
3.44 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 503937) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= apache24 > PORTVERSION= 2.4.39 >+PORTREVISION= 1 > CATEGORIES= www ipv6 > MASTER_SITES= APACHE_HTTPD > DISTNAME= httpd-${PORTVERSION} >Index: files/patch-modules__filters__mod_reqtimeout.c-bug-63325 >=================================================================== >--- files/patch-modules__filters__mod_reqtimeout.c-bug-63325 (nonexistent) >+++ files/patch-modules__filters__mod_reqtimeout.c-bug-63325 (working copy) >@@ -0,0 +1,62 @@ >+--- modules/filters/mod_reqtimeout.c 2019/04/08 18:30:57 1857128 >++++ modules/filters/mod_reqtimeout.c 2019/04/08 18:46:12 1857129 >+@@ -31,7 +31,7 @@ >+ #define UNSET -1 >+ #define MRT_DEFAULT_handshake_TIMEOUT 0 /* disabled */ >+ #define MRT_DEFAULT_handshake_MAX_TIMEOUT 0 >+-#define MRT_DEFAULT_handshake_MIN_RATE APR_INT32_MAX >++#define MRT_DEFAULT_handshake_MIN_RATE 0 >+ #define MRT_DEFAULT_header_TIMEOUT 20 >+ #define MRT_DEFAULT_header_MAX_TIMEOUT 40 >+ #define MRT_DEFAULT_header_MIN_RATE 500 >+@@ -220,7 +220,7 @@ >+ if (block == APR_NONBLOCK_READ || mode == AP_MODE_INIT >+ || mode == AP_MODE_EATCRLF) { >+ rv = ap_get_brigade(f->next, bb, mode, block, readbytes); >+- if (ccfg->cur_stage.rate_factor > 0 && rv == APR_SUCCESS) { >++ if (ccfg->cur_stage.rate_factor && rv == APR_SUCCESS) { >+ extend_timeout(ccfg, bb); >+ } >+ return rv; >+@@ -254,7 +254,7 @@ >+ } >+ >+ if (!APR_BRIGADE_EMPTY(bb)) { >+- if (ccfg->cur_stage.rate_factor > 0) { >++ if (ccfg->cur_stage.rate_factor) { >+ extend_timeout(ccfg, bb); >+ } >+ >+@@ -315,7 +315,7 @@ >+ * the real (relevant) bytes to be asked later, within the >+ * currently alloted time. >+ */ >+- if (ccfg->cur_stage.rate_factor > 0 && rv == APR_SUCCESS >++ if (ccfg->cur_stage.rate_factor && rv == APR_SUCCESS >+ && mode != AP_MODE_SPECULATIVE) { >+ extend_timeout(ccfg, bb); >+ } >+@@ -638,17 +638,17 @@ >+ ap_hook_post_read_request(reqtimeout_before_body, NULL, NULL, >+ APR_HOOK_MIDDLE); >+ >+-#if MRT_DEFAULT_HANDSHAKE_MIN_RATE > 0 >++#if MRT_DEFAULT_handshake_MIN_RATE >+ default_handshake_rate_factor = apr_time_from_sec(1) / >+- MRT_DEFAULT_HANDSHAKE_MIN_RATE; >++ MRT_DEFAULT_handshake_MIN_RATE; >+ #endif >+-#if MRT_DEFAULT_HEADER_MIN_RATE > 0 >++#if MRT_DEFAULT_header_MIN_RATE >+ default_header_rate_factor = apr_time_from_sec(1) / >+- MRT_DEFAULT_HEADER_MIN_RATE; >++ MRT_DEFAULT_header_MIN_RATE; >+ #endif >+-#if MRT_DEFAULT_BODY_MIN_RATE > 0 >++#if MRT_DEFAULT_body_MIN_RATE >+ default_body_rate_factor = apr_time_from_sec(1) / >+- MRT_DEFAULT_BODY_MIN_RATE; >++ MRT_DEFAULT_body_MIN_RATE; >+ #endif >+ } >+ > >Property changes on: files/patch-modules__filters__mod_reqtimeout.c-bug-63325 >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 238488
: 204978