Conflicts: bin/varnishd/cache/cache_http.c bin/varnishd/http1/cache_http1_fsm.c Conflicts: bin/varnishd/cache/cache.h bin/varnishd/cache/cache_http.c bin/varnishd/cache/cache_http1_fsm.c include/tbl/sess_close.h
Original patch and test case by: tnt Fixes: #1627
If a duplicate CL header is in the request, we fail the request with a 400 (Bad Request) Fix a test case that was sending duplicate CL by misstake and would not fail because of that.
Varnish (prior to version 4.0) was not following the standard with regard to line separator. Spotted and analyzed by: Régis Leroy [regilero] email@example.com
Backports commit 2144dc7 for Varnish 3.0.6 (by Geoff)
Extensive test cases often lead to a lot of log output, which at times tripped the following assert: Assert error in vtc_log_emit(), vtc_log.c line 122: Condition(vtclog_left > l) not true. Double the amount of buffer space allowed to avoid this. Another 256KB memory use per concurrent running test should be fine.
Round up the header space with PRNDUP in session space allocation to fix alignment issue. Fixes: #1327
ESI subrequests would mangle the t_open and t_resp timestamps of the original requests, causing negative time and NAN being logged in ReqEnd. Fixes: #1297