[master] 06ebc9e Call pan_htc also from pan_req

Martin Blix Grydeland martin at varnish-software.com
Fri Jul 31 16:49:53 CEST 2015


commit 06ebc9ede143ebcd407c11a7b775fcbde3f9e44b
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Fri Jul 31 16:39:12 2015 +0200

    Call pan_htc also from pan_req
    
    This dumps some useful bits about the state of the client connection.

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 7072209..c30c64d 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -350,6 +350,8 @@ pan_req(struct vsb *vsb, const struct req *req)
 		pan_wrk(vsb, req->wrk);
 
 	pan_ws(vsb, req->ws);
+	if (VALID_OBJ(req->htc, HTTP_CONN_MAGIC))
+		pan_htc(vsb, req->htc);
 	pan_http(vsb, "req", req->http);
 	if (req->resp->ws != NULL)
 		pan_http(vsb, "resp", req->resp);



More information about the varnish-commit mailing list