summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_accept.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event/ngx_event_accept.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/event/ngx_event_accept.c b/src/event/ngx_event_accept.c
index 18f8586cd..6401b6aef 100644
--- a/src/event/ngx_event_accept.c
+++ b/src/event/ngx_event_accept.c
@@ -210,25 +210,6 @@ void ngx_event_accept(ngx_event_t *ev)
rinstance = rev->returned_instance;
winstance = wev->returned_instance;
-#if (NGX_THREADS)
-
- /*
- * We has to acquire the lock to avoid the race condition when
- * the connection was just closed by another thread but its lock
- * is not unlocked at this point and we got the same descriptor.
- *
- * The condition should be too rare.
- */
-
- if (ngx_trylock(&c->lock) == 0) {
-
- /* TODO: ngx_cycle->stat.accept.spinlock++; */
-
- ngx_spinlock(&c->lock, 1000);
- }
-
-#endif
-
ngx_memzero(rev, sizeof(ngx_event_t));
ngx_memzero(wev, sizeof(ngx_event_t));
ngx_memzero(c, sizeof(ngx_connection_t));