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
c4bb9c7a
Commit
c4bb9c7a
authored
Apr 20, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove instruction to discard body prematurely
parent
5fb8fac0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
ngx_http_push_stream_module_publisher.c
src/ngx_http_push_stream_module_publisher.c
+0
-4
ngx_http_push_stream_module_subscriber.c
src/ngx_http_push_stream_module_subscriber.c
+0
-4
No files found.
src/ngx_http_push_stream_module_publisher.c
View file @
c4bb9c7a
...
...
@@ -149,10 +149,6 @@ ngx_http_push_stream_publisher_body_handler(ngx_http_request_t *r)
buf
->
start
=
buf
->
last
;
}
// discard request body it is no longer needed
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
// format message
buf_msg
=
ngx_http_push_stream_get_formatted_message
(
cf
,
channel
,
buf
,
r
->
pool
);
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR
(
buf_msg
,
NULL
,
r
,
"push stream module: unable to format message"
);
...
...
src/ngx_http_push_stream_module_subscriber.c
View file @
c4bb9c7a
...
...
@@ -23,9 +23,6 @@ ngx_http_push_stream_subscriber_handler(ngx_http_request_t *r)
return
ngx_http_push_stream_send_only_header_response
(
r
,
NGX_HTTP_NOT_ALLOWED
,
NULL
);
}
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
//create a temporary pool to allocate temporary elements
if
((
temp_pool
=
ngx_create_pool
(
NGX_CYCLE_POOL_SIZE
,
r
->
connection
->
log
))
==
NULL
)
{
ngx_log_error
(
NGX_LOG_ERR
,
r
->
connection
->
log
,
0
,
"push stream module: unable to allocate memory for temporary pool"
);
...
...
@@ -120,7 +117,6 @@ ngx_http_push_stream_subscriber_handler(ngx_http_request_t *r)
// responding subscriber
r
->
read_event_handler
=
ngx_http_test_reading
;
r
->
write_event_handler
=
ngx_http_request_empty_handler
;
ngx_http_discard_request_body
(
r
);
r
->
discard_body
=
1
;
r
->
headers_out
.
content_type
=
cf
->
content_type
;
...
...
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