Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2019 14:13:43 +0000 (UTC)
From:      Jochen Neumeister <joneum@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r503960 - in head/www/apache24: . files
Message-ID:  <201906111413.x5BEDhTK009472@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: joneum
Date: Tue Jun 11 14:13:43 2019
New Revision: 503960
URL: https://svnweb.freebsd.org/changeset/ports/503960

Log:
  meout: fix default_[stage]_rate_factor initializations.
  
  PR:		238488
  Reported by:	girgen
  Sponsored by:	Netzkommune GmbH

Added:
  head/www/apache24/files/patch-modules__filters__mod_reqtimeout.c-bug-63325   (contents, props changed)
Modified:
  head/www/apache24/Makefile

Modified: head/www/apache24/Makefile
==============================================================================
--- head/www/apache24/Makefile	Tue Jun 11 13:45:35 2019	(r503959)
+++ head/www/apache24/Makefile	Tue Jun 11 14:13:43 2019	(r503960)
@@ -2,6 +2,7 @@
 
 PORTNAME=	apache24
 PORTVERSION=	2.4.39
+PORTREVISION=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	APACHE_HTTPD
 DISTNAME=	httpd-${PORTVERSION}

Added: head/www/apache24/files/patch-modules__filters__mod_reqtimeout.c-bug-63325
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apache24/files/patch-modules__filters__mod_reqtimeout.c-bug-63325	Tue Jun 11 14:13:43 2019	(r503960)
@@ -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
+ }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906111413.x5BEDhTK009472>