Welcome! Log In Create A New Profile

Advanced

[PATCH] disable chunked filter don't change keepalive

January 21, 2012 07:48PM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] disable chunked filter don't change keepalive

wandenberg 2099 January 21, 2012 07:48PM

Re: [PATCH] disable chunked filter don't change keepalive

Maxim Dounin 561 January 22, 2012 04:30PM

Re: [PATCH] disable chunked filter don't change keepalive

wandenberg 699 January 22, 2012 04:40PM

Re: [PATCH] disable chunked filter don't change keepalive

Maxim Dounin 774 January 22, 2012 05:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready