[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix neon inflate bug

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2002-06-06 20:20:29 CEST

With this patch to neon and HEAD of httpd-2.0 and mod_deflate turned
on, I can check out my own website under SVN control with gzip
compression.

So, I think most of the bugs are ironed out now. =)

* src/ne_compress.c (do_inflate): If we have nothing left to inflate,
do not try to re-execute the loop and inflate again. We would get a
Z_BUF_ERROR in this case.

Please let me know if you have any questions. -- justin

Index: src/ne_compress.c
===================================================================
RCS file: /home/cvs/neon/src/ne_compress.c,v
retrieving revision 1.16
diff -u -r1.16 ne_compress.c
--- src/ne_compress.c 2002/06/03 10:37:02 1.16
+++ src/ne_compress.c 2002/06/06 18:04:01
@@ -200,7 +200,8 @@
         /* pass on the inflated data */
         ctx->reader(ctx->userdata, ctx->outbuf, ctx->zstr.total_out);
         
- } while (ret == Z_OK && ctx->zstr.avail_out == 0);
+ } while (ret == Z_OK && ctx->zstr.avail_out == 0 &&
+ ctx->zstr.avail_in != 0);
     
     if (ret == Z_STREAM_END) {
         NE_DEBUG(NE_DBG_HTTP, "compress: end of data stream, remaining %d.\n",

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 6 20:21:16 2002

This is an archived mail posted to the Subversion Dev mailing list.