[master] d22dbc0cf Fix error message on chunked insufficient bytes

Martin Blix Grydeland martin at varnish-software.com
Fri Oct 11 14:59:06 UTC 2019

commit d22dbc0cfc3ef1a00a5ffe8269fbccda442297c4
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Fri Oct 11 16:55:42 2019 +0200

    Fix error message on chunked insufficient bytes
    Failure to read the right number of bytes (typically due to remote HUP)
    would log "straight insufficient bytes", which is the same as we log for
    C-L based fetches. Change this to "chunked insufficient bytes". (Assuming
    this was a copy-paste error).

diff --git a/bin/varnishd/http1/cache_http1_vfp.c b/bin/varnishd/http1/cache_http1_vfp.c
index 4171c6151..a6cda3caf 100644
--- a/bin/varnishd/http1/cache_http1_vfp.c
+++ b/bin/varnishd/http1/cache_http1_vfp.c
@@ -161,7 +161,7 @@ v1f_pull_chunked(struct vfp_ctx *vc, struct vfp_entry *vfe, void *ptr,
 			l = vfe->priv2;
 		lr = v1f_read(vc, htc, ptr, l);
 		if (lr <= 0)
-			return (VFP_Error(vc, "straight insufficient bytes"));
+			return (VFP_Error(vc, "chunked insufficient bytes"));
 		*lp = lr;
 		vfe->priv2 -= lr;
 		if (vfe->priv2 == 0)

More information about the varnish-commit mailing list