Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
3477fe92
Commit
3477fe92
authored
May 15, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable chuncked filter for module locations
parent
174de003
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
23 deletions
+3
-23
README.textile
README.textile
+1
-14
nginx.conf
misc/nginx.conf
+0
-4
ngx_http_push_stream_module_setup.c
src/ngx_http_push_stream_module_setup.c
+2
-0
base_test_case.rb
test/base_test_case.rb
+0
-5
No files found.
README.textile
View file @
3477fe92
...
...
@@ -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
...
...
misc/nginx.conf
View file @
3477fe92
...
...
@@ -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
;
}
}
}
src/ngx_http_push_stream_module_setup.c
View file @
3477fe92
...
...
@@ -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
;
}
...
...
test/base_test_case.rb
View file @
3477fe92
...
...
@@ -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;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment