[PATCH] disable chunked filter don't change keepalive

Wandenberg Peixoto wandenberg at gmail.com
Sun Jan 22 00:46:12 UTC 2012


Hi,

I don't know if there is some reason to disable keepalive if chunked filter
is disabled.
If don't have a reason for that I would ask to apply this patch to nginx
core.

--- src/http/modules/ngx_http_chunked_filter_module.c    2011-09-30
11:20:52.000000000 -0300
+++ src/http/modules/ngx_http_chunked_filter_module.c    2012-01-21
22:35:51.663785000 -0200
@@ -84,9 +84,6 @@
                 }

                 ngx_http_set_ctx(r, ctx, ngx_http_chunked_filter_module);
-
-            } else {
-                r->keepalive = 0;
             }
         }
     }

I developed a module which delivery the same message to many users in a
chunked connection, because of that I disable chunked filter and make the
chunks myself to deliver to all users saving some memory and processing.

Everything is working fine, but without this patch I can not use keepalive
on my connections, because nginx chunked filter disable this feature when
it is disabled.

I hope you can accept this simple patch, regardless of my use case.

Regards,
Wandenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120121/5f2cf6be/attachment.html>


More information about the nginx-devel mailing list