[master] d5c626213 Avoid a race by using syncvsl

Poul-Henning Kamp phk at FreeBSD.org
Tue Jun 9 07:01:06 UTC 2020


commit d5c626213b8979ab9ac4adb48c93c861c6b3fd28
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jun 9 06:58:35 2020 +0000

    Avoid a race by using syncvsl
    
    Without syncvsl, client N+1 may emitting VSL before client N
    has flushed its VSL.
    
    (In general we should probably always use syncvsl with logexpect)

diff --git a/bin/varnishtest/tests/m00049.vtc b/bin/varnishtest/tests/m00049.vtc
index 01ad05b66..8a3dfd4f5 100644
--- a/bin/varnishtest/tests/m00049.vtc
+++ b/bin/varnishtest/tests/m00049.vtc
@@ -6,6 +6,7 @@ varnishtest "VMOD blob workspace overflow conditions"
 # will not result in a compilation failure.
 
 varnish v1 -cliok "param.set vcc_err_unref off"
+varnish v1 -cliok "param.set debug +syncvsl"
 
 shell {
 	cat >vrt_blob.vcl <<-EOF


More information about the varnish-commit mailing list