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
ec9c3254
Commit
ec9c3254
authored
Mar 28, 2013
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup request context in a locked block
parent
4dd1ad35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ngx_http_push_stream_module_utils.c
src/ngx_http_push_stream_module_utils.c
+2
-2
No files found.
src/ngx_http_push_stream_module_utils.c
View file @
ec9c3254
...
...
@@ -1129,6 +1129,7 @@ ngx_http_push_stream_cleanup_request_context(ngx_http_request_t *r)
ngx_slab_pool_t
*
shpool
=
(
ngx_slab_pool_t
*
)
ngx_http_push_stream_shm_zone
->
shm
.
addr
;
ngx_http_push_stream_subscriber_ctx_t
*
ctx
=
ngx_http_get_module_ctx
(
r
,
ngx_http_push_stream_module
);
ngx_shmtx_lock
(
&
shpool
->
mutex
);
if
(
ctx
!=
NULL
)
{
if
((
ctx
->
disconnect_timer
!=
NULL
)
&&
ctx
->
disconnect_timer
->
timer_set
)
{
ngx_del_timer
(
ctx
->
disconnect_timer
);
...
...
@@ -1144,12 +1145,11 @@ ngx_http_push_stream_cleanup_request_context(ngx_http_request_t *r)
}
if
(
ctx
->
subscriber
!=
NULL
)
{
ngx_shmtx_lock
(
&
shpool
->
mutex
);
ngx_http_push_stream_worker_subscriber_cleanup_locked
(
ctx
->
subscriber
);
ctx
->
subscriber
=
NULL
;
ngx_shmtx_unlock
(
&
shpool
->
mutex
);
}
}
ngx_shmtx_unlock
(
&
shpool
->
mutex
);
}
...
...
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