[master] 4042ed2 Use the right h2req for sending window updates
Poul-Henning Kamp
phk at FreeBSD.org
Mon Mar 13 13:34:06 CET 2017
commit 4042ed234bf3b14a89436851971833bd7f08bf07
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Mar 13 12:32:34 2017 +0000
Use the right h2req for sending window updates
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index fb7bfd1..cbb3c52 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -585,14 +585,14 @@ h2_rx_data(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
Lck_Unlock(&h2->sess->mtx);
if (w1 || w2) {
vbe32enc(buf, wi);
- H2_Send_Get(wrk, h2, r2);
+ H2_Send_Get(wrk, h2, h2->req0);
if (w1)
H2_Send_Frame(wrk, h2, H2_F_WINDOW_UPDATE, 0,
4, 0, buf);
if (w2)
H2_Send_Frame(wrk, h2, H2_F_WINDOW_UPDATE, 0,
4, r2->stream, buf);
- H2_Send_Rel(h2, r2);
+ H2_Send_Rel(h2, h2->req0);
}
return (0);
}
More information about the varnish-commit
mailing list