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
6a63c718
Commit
6a63c718
authored
Jun 04, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug on publisher which let to many open connections on some nginx versions
parent
39f8e0bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
ngx_http_push_stream_module.c
src/ngx_http_push_stream_module.c
+0
-5
ngx_http_push_stream_module_publisher.c
src/ngx_http_push_stream_module_publisher.c
+1
-0
ngx_http_push_stream_module_utils.c
src/ngx_http_push_stream_module_utils.c
+0
-2
No files found.
src/ngx_http_push_stream_module.c
View file @
6a63c718
...
@@ -112,8 +112,6 @@ ngx_http_push_stream_send_buf_response(ngx_http_request_t *r, ngx_buf_t *buf, co
...
@@ -112,8 +112,6 @@ ngx_http_push_stream_send_buf_response(ngx_http_request_t *r, ngx_buf_t *buf, co
r
->
keepalive
=
0
;
r
->
keepalive
=
0
;
r
->
headers_out
.
status
=
status_code
;
r
->
headers_out
.
status
=
status_code
;
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
rc
=
ngx_http_send_header
(
r
);
rc
=
ngx_http_send_header
(
r
);
if
(
rc
==
NGX_ERROR
||
rc
>
NGX_OK
||
r
->
header_only
)
{
if
(
rc
==
NGX_ERROR
||
rc
>
NGX_OK
||
r
->
header_only
)
{
...
@@ -242,9 +240,6 @@ ngx_http_push_stream_send_response_all_channels_info_detailed(ngx_http_request_t
...
@@ -242,9 +240,6 @@ ngx_http_push_stream_send_response_all_channels_info_detailed(ngx_http_request_t
r
->
headers_out
.
content_length_n
=
-
1
;
r
->
headers_out
.
content_length_n
=
-
1
;
r
->
headers_out
.
status
=
NGX_HTTP_OK
;
r
->
headers_out
.
status
=
NGX_HTTP_OK
;
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
rc
=
ngx_http_send_header
(
r
);
rc
=
ngx_http_send_header
(
r
);
if
(
rc
==
NGX_ERROR
||
rc
>
NGX_OK
||
r
->
header_only
)
{
if
(
rc
==
NGX_ERROR
||
rc
>
NGX_OK
||
r
->
header_only
)
{
return
rc
;
return
rc
;
...
...
src/ngx_http_push_stream_module_publisher.c
View file @
6a63c718
...
@@ -205,6 +205,7 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r)
...
@@ -205,6 +205,7 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r)
ngx_http_push_stream_buffer_cleanup_timer_set
(
cf
);
ngx_http_push_stream_buffer_cleanup_timer_set
(
cf
);
ngx_http_push_stream_send_response_channel_info
(
r
,
channel
);
ngx_http_push_stream_send_response_channel_info
(
r
,
channel
);
ngx_http_finalize_request
(
r
,
NGX_HTTP_OK
);
return
;
return
;
}
}
...
...
src/ngx_http_push_stream_module_utils.c
View file @
6a63c718
...
@@ -95,8 +95,6 @@ ngx_http_push_stream_send_only_header_response(ngx_http_request_t *r, ngx_int_t
...
@@ -95,8 +95,6 @@ ngx_http_push_stream_send_only_header_response(ngx_http_request_t *r, ngx_int_t
{
{
ngx_int_t
rc
;
ngx_int_t
rc
;
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
r
->
keepalive
=
0
;
r
->
keepalive
=
0
;
r
->
header_only
=
1
;
r
->
header_only
=
1
;
r
->
headers_out
.
content_length_n
=
0
;
r
->
headers_out
.
content_length_n
=
0
;
...
...
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