[master] 40e09c2 Don't return VGZ_STUCK if we have emptied the input.

Poul-Henning Kamp phk at varnish-cache.org
Thu Mar 31 18:58:31 CEST 2011


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);
 }
 



More information about the varnish-commit mailing list