[master] e1fea86 Increase http_req_size, http_resp_size to 8192 bytes

Tollef Fog Heen tfheen at varnish-cache.org
Tue Sep 20 11:10:08 CEST 2011


commit e1fea86a22813af16533edcab374a1043fdb3593
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Tue Sep 20 11:07:21 2011 +0200

    Increase http_req_size, http_resp_size to 8192 bytes
    
    Apache (and nginx) uses 8k, so use the same default size to avoid
    people being surprised by more 413 responses than necessary.
    
    Fixes: #1016

diff --git a/bin/varnishd/mgt_param.c b/bin/varnishd/mgt_param.c
index 96a83fc..decd130 100644
--- a/bin/varnishd/mgt_param.c
+++ b/bin/varnishd/mgt_param.c
@@ -525,7 +525,7 @@ static const struct parspec input_parspec[] = {
 		"Maximum length of any HTTP client request header we will "
 		"allow.  The limit is inclusive its continuation lines.\n",
 		0,
-		"4096", "bytes" },
+		"8192", "bytes" },
 	{ "http_req_size", tweak_uint, &master.http_req_size,
 		256, UINT_MAX,
 		"Maximum number of bytes of HTTP client request we will deal "
@@ -541,7 +541,7 @@ static const struct parspec input_parspec[] = {
 		"Maximum length of any HTTP backend response header we will "
 		"allow.  The limit is inclusive its continuation lines.\n",
 		0,
-		"4096", "bytes" },
+		"8192", "bytes" },
 	{ "http_resp_size", tweak_uint, &master.http_resp_size,
 		256, UINT_MAX,
 		"Maximum number of bytes of HTTP backend resonse we will deal "



More information about the varnish-commit mailing list