[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [master] 40e09c2 Don't return VGZ_STUCK if we have emptied the input.
From: phk () varnish-cache ! org (Poul-Henning Kamp)
Date: 2011-03-31 16:58:31
Message-ID: E1Q5LCZ-00050D-0R () project ! varnish-software ! com
[Download RAW message or body]
commit 40e09c27b8c58f2ca879a6f6743ae04e4caca8eb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Mar 31 14:42:28 2011 +0000
Don't return VGZ_STUCK if we have emptied the input.
diff --git a/bin/varnishd/cache_gzip.c b/bin/varnishd/cache_gzip.c
index e398583..b4d78dd 100644
--- a/bin/varnishd/cache_gzip.c
+++ b/bin/varnishd/cache_gzip.c
@@ -388,6 +388,8 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
VGZ_Obuf(vg, obuf + *obufp, obufl - *obufp);
}
} while (!VGZ_IbufEmpty(vg));
+ if (i == VGZ_STUCK)
+ i = VGZ_OK;
return (i);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic