vinyl-cache · code.vinyl-cache.org: Vinyl Cache open source code repositories

Nils Goroll

97ff6b6e59

All checks were successful

/ distcheck (push) Successful in 28m30s

Make HttpGarbage VSL more helpful

In many cases, vsl under the HttpGarbage tag would not actually contain anything
helpful pointing towards the issue (but rather just the method). This patch
might not be perfect, but an improvement nevertheless.
Diff for b40:
$ grep -E 'vsl\|.*(BogoHeader|HttpGarbage|Status)' /tmp/wip_main/bin/vinyltest/tests/b00040.log >/tmp/a
$ grep -E 'vsl\|.*(BogoHeader|HttpGarbage|Status)' /tmp/wip_garbage/bin/vinyltest/tests/b00040.log >/tmp/b
$ diff -ub /tmp/{a,b}
--- /tmp/a	2026-08-31 16:43:45.326124304 +0200
+++ /tmp/b	2026-08-31 16:43:50.314004381 +0200
@@ -1,25 +1,22 @@
 **** v1    vsl|       1001 BogoHeader      c 1st header has white space:  Host: foo
-**** v1    vsl|       1001 HttpGarbage     c GET
 **** v1    vsl|       1001 RespStatus      c 400
 **** v1    vsl|       1003 BogoHeader      c 1st header has white space:  Host: foo
-**** v1    vsl|       1003 HttpGarbage     c GET
 **** v1    vsl|       1003 RespStatus      c 400
 **** v1    vsl|       1005 BogoHeader      c Header has ctrl char 0x0d
-**** v1    vsl|       1005 HttpGarbage     c GET
+**** v1    vsl|       1005 HttpGarbage     c \rHost: foo\r\n\r\n
 **** v1    vsl|       1005 RespStatus      c 400
 **** v1    vsl|       1008 BerespStatus    b 200
 **** v1    vsl|       1007 RespStatus      c 200
 **** v1    vsl|       1010 BogoHeader      c Header has ctrl char 0x01
-**** v1    vsl|       1010 HttpGarbage     c GET
+**** v1    vsl|       1010 HttpGarbage     c Bogo: Header\x01More\r\n\r\n
 **** v1    vsl|       1010 RespStatus      c 400
 **** v1    vsl|       1012 BogoHeader      c Header has ctrl char 0x0d
-**** v1    vsl|       1012 HttpGarbage     c GET
+**** v1    vsl|       1012 HttpGarbage     c Bogo: Header\r\r\n\r\n
 **** v1    vsl|       1012 RespStatus      c 400
 **** v1    vsl|       1014 BogoHeader      c Header has ctrl char 0x0d
-**** v1    vsl|       1014 HttpGarbage     c GET
+**** v1    vsl|       1014 HttpGarbage     c Bogo: Header\rMore\r\n\r\n
 **** v1    vsl|       1014 RespStatus      c 400
 **** v1    vsl|       1016 BogoHeader      c Missing header name: : Header
-**** v1    vsl|       1016 HttpGarbage     c GET
 **** v1    vsl|       1016 RespStatus      c 400
 **** v1    vsl|       1018 RespStatus      c 503
 **** v1    vsl|       1021 BerespStatus    b 200

2026-08-31 16:47:04 +02:00 .circleci [cci] also install epel for almalinux:10 2026-04-01 15:35:44 +02:00 .forgejo Update the install instructions for FreeBSD 2026-04-08 12:39:33 +00:00 .github More complete varnish->vinyl replace 2026-03-12 16:10:41 +01:00 bin Make HttpGarbage VSL more helpful 2026-08-31 16:47:04 +02:00 contrib More complete varnish->vinyl replace 2026-03-12 16:10:41 +01:00 doc Add req0.method, req0.url, req0.proto and req0.http.* 2026-08-27 16:54:41 +02:00 etc Canonicalize homepage url references 2026-04-10 12:00:50 +02:00 include make vsl mask notice more helpful 2026-08-31 13:23:38 +02:00 lib Add a global flint make target 2026-08-27 15:17:18 +02:00 m4 chore(m4): spelling: reentrant 2024-08-19 12:40:25 +00:00 man Another round of s/varnish/vinyl/ over the docs 2026-03-08 17:24:43 +00:00 tools Add a tool to format logexp from vtc output 2026-08-31 09:22:01 +02:00 vmod Add http_CollectAllHdrs and std.collect_all() 2026-08-28 10:22:55 +02:00 .dir-locals.el emacs: tabs mode only applies to c sources 2020-05-19 08:39:52 +02:00 .editorconfig Humble beginnings with editorconfig 2023-06-07 20:41:20 +02:00 .gitignore Add pahole make recipie 2026-07-07 13:18:43 +02:00 .gitmodules Rename our local version of vtest to vinyltest. 2026-03-07 15:39:35 +00:00 .lgtm.yml Ignore empty blocks 2019-10-01 14:12:10 +01:00 .syntastic_c_config Make life easier for vim/syntastic users 2016-09-05 22:14:01 +02:00 autogen.des Put the witness facility behind a compile time flag 2026-08-27 14:28:23 +02:00 autogen.sh Firm retirement of autogen.sh 2020-06-16 17:34:39 +02:00 ChangeLog remove old content from changelog 2013-05-18 19:49:25 +01:00 configure.ac Add a global flint make target 2026-08-27 15:17:18 +02:00 CONTRIBUTING.md Update CONTRIBUTING 2026-02-21 19:48:20 +01:00 flint.lnt Flexelint: Move statement expression suppression to global lnt file 2026-07-07 15:40:22 +02:00 INSTALL s/varnish/vinyl/ on INSTALL 2026-03-08 17:26:03 +00:00 LICENSE Update the LICENSE file 2026-03-07 20:24:29 +00:00 Makefile.am Put the witness facility behind a compile time flag 2026-08-27 14:28:23 +02:00 README.md Markdownify README 2026-02-16 15:36:28 +01:00 README.Packaging More s/varnish/vinyl/ 2026-03-09 10:11:19 +00:00 vinyl-legacy.m4 More complete varnish->vinyl replace 2026-03-12 16:10:41 +01:00 vinyl.m4 Search for vcls in /etc/vinyl-cache not /etc/vinyl 2026-03-15 17:09:43 +01:00 vinylapi-uninstalled.pc.in s/varnishapi/vinylapi/ 2026-03-08 14:52:24 +00:00 vinylapi.pc.in s/varnishapi/vinylapi/ 2026-03-08 14:52:24 +00:00 vsc.am More complete varnish->vinyl replace 2026-03-12 16:10:41 +01:00 vtc.am Use vtest2's built-in support for autocrap test-protocol 2026-04-13 07:55:54 +00:00 wflags.py Try a different solution to the macos compilation errors 2026-02-24 18:41:43 +01:00

Read the original on code.vinyl-cache.org ↗