[master] 7f076ef Allow an h/2 flow control to go negative
Dag Haavi Finstad
daghf at varnish-software.com
Thu Mar 8 12:43:07 UTC 2018
commit 7f076ef2bc40d43ea92d3492023482e411f79826
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Thu Mar 8 13:41:05 2018 +0100
Allow an h/2 flow control to go negative
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 63401e0..1425084 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -358,7 +358,7 @@ h2_rx_window_update(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
else if (r2->cond != NULL)
AZ(pthread_cond_signal(r2->cond));
Lck_Unlock(&h2->sess->mtx);
- if (r2->t_window >= (1LLU << 31))
+ if (r2->t_window >= (1LL << 31))
return (H2SE_FLOW_CONTROL_ERROR);
return (0);
}
More information about the varnish-commit
mailing list