Commit 3477fe92 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

disable chuncked filter for module locations

parent 174de003
......@@ -93,10 +93,6 @@ h2(#basic-configuration). Basic Configuration
# broadcast
push_stream_broadcast_channel_prefix "broad_";
push_stream_broadcast_channel_max_qtd 3;
# solving some leakage problem with persistent connections in
# Nginx's chunked filter (ngx_http_chunked_filter_module.c)
chunked_transfer_encoding off;
}
</code>
</pre>
......@@ -384,16 +380,7 @@ This operation is very important to help Nginx recycle memory consumed to create
h2(#attention). Attention
This module controls everything needed to send the messages to subscribers.
So is strongly recommended to you disable Nginx's chuncked filter to reduce memory consumption.
You can do this using the _chunked_transfer_encoding_ directive on subscriber location
<pre>
<code>
# solving some leakage problem with persistent connections in
# Nginx's chunked filter (ngx_http_chunked_filter_module.c)
chunked_transfer_encoding off;
</code>
</pre>
So it disable Nginx's chuncked filter to reduce memory consumption in streaming connections.
h2(#tests). Tests
......
......@@ -91,10 +91,6 @@ http {
# broadcast
push_stream_broadcast_channel_prefix "broad_";
push_stream_broadcast_channel_max_qtd 3;
# solving some leakage problem with persistent connections in
# Nginx's chunked filter (ngx_http_chunked_filter_module.c)
chunked_transfer_encoding off;
}
}
}
......@@ -460,6 +460,8 @@ ngx_http_push_stream_setup_handler(ngx_conf_t *cf, void *conf, ngx_int_t (*handl
clcf->handler = handler;
clcf->if_modified_since = NGX_HTTP_IMS_OFF;
// disable chunked_filter_module for streaming connections
clcf->chunked_transfer_encoding = 0;
return NGX_CONF_OK;
}
......
......@@ -280,11 +280,6 @@ http {
<%= "push_stream_max_number_of_broadcast_channels #{@max_number_of_broadcast_channels};" unless @max_number_of_broadcast_channels.nil? %>
<%= "push_stream_memory_cleanup_timeout #{@memory_cleanup_timeout};" unless @memory_cleanup_timeout.nil? %>
# solving some leakage problem with persitent connections in
# Nginx's chunked filter (ngx_http_chunked_filter_module.c)
chunked_transfer_encoding off;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment