diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:03 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:03 +0400 |
commit | 2a81e0556611188a1b9b3e1240a06928dcebc1a2 (patch) | |
tree | 59f0296dff877b77b7f22c0c5955f31014d3c164 /src/core/ngx_connection.c | |
parent | 3ca3f609cb7d9bc5576bf9fb77998cf110b688cb (diff) |
Events: removed broken thread support from posted events.
It's mostly dead code. And the idea of thread support for this task has
been deprecated.
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r-- | src/core/ngx_connection.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 4c42ffc0d..7b3daf20a 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -951,26 +951,9 @@ ngx_close_connection(ngx_connection_t *c) * before we clean the connection */ - ngx_mutex_lock(ngx_posted_events_mutex); - - if (c->read->prev) { - ngx_delete_posted_event(c->read); - } - - if (c->write->prev) { - ngx_delete_posted_event(c->write); - } - - c->read->closed = 1; - c->write->closed = 1; - ngx_unlock(&c->lock); - c->read->locked = 0; - c->write->locked = 0; - - ngx_mutex_unlock(ngx_posted_events_mutex); -#else +#endif if (c->read->prev) { ngx_delete_posted_event(c->read); @@ -983,8 +966,6 @@ ngx_close_connection(ngx_connection_t *c) c->read->closed = 1; c->write->closed = 1; -#endif - ngx_reusable_connection(c, 0); log_error = c->log_error; |