[master] bbb0506 HTC_S_OVERFLOW is a valid response from the "are_we_there_yet" function.
Poul-Henning Kamp
phk at FreeBSD.org
Wed Apr 29 15:13:04 CEST 2015
commit bbb050698cee6dd180893786f9596e8b36d51e6d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Apr 29 13:08:47 2015 +0000
HTC_S_OVERFLOW is a valid response from the "are_we_there_yet" function.
diff --git a/bin/varnishd/cache/cache_session.c b/bin/varnishd/cache/cache_session.c
index 33cad6b..6391cd7 100644
--- a/bin/varnishd/cache/cache_session.c
+++ b/bin/varnishd/cache/cache_session.c
@@ -259,6 +259,10 @@ SES_RxReq(const struct worker *wrk, struct req *req, htc_complete_f *func)
return (HTC_S_OVERFLOW);
}
hs = func(req->htc);
+ if (hs == HTC_S_OVERFLOW) {
+ WS_ReleaseP(req->htc->ws, req->htc->rxbuf_b);
+ return (HTC_S_OVERFLOW);
+ }
if (hs == HTC_S_JUNK) {
WS_ReleaseP(req->htc->ws, req->htc->rxbuf_b);
return (HTC_S_JUNK);
More information about the varnish-commit
mailing list