nginx fails to deliver certain files with gzip + SSL

Igor Sysoev is at rambler-co.ru
Thu Nov 8 17:40:10 MSK 2007


On Mon, Oct 29, 2007 at 09:00:45PM +0100, Joshua Sierles wrote:

> Thanks, that seems to work great. What exactly was the problem?

Try the new correct patch. The previous should be rolled back.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/modules/ngx_http_gzip_filter_module.c
===================================================================
--- src/http/modules/ngx_http_gzip_filter_module.c	(revision 943)
+++ src/http/modules/ngx_http_gzip_filter_module.c	(working copy)
@@ -837,12 +837,15 @@
             }
         }
 
-        if (last == NGX_AGAIN && !ctx->done) {
-            return NGX_AGAIN;
-        }
+        if (ctx->out == NULL) {
 
-        if (ctx->out == NULL && ctx->busy == NULL) {
-            return NGX_OK;
+            if (last == NGX_AGAIN) {
+                return NGX_AGAIN;
+            }
+
+            if (ctx->busy == NULL) {
+                return NGX_OK;
+            }
         }
 
         last = ngx_http_next_body_filter(r, ctx->out);


More information about the nginx mailing list