diff src/event/ngx_event_accept.c @ 374:213f17e9f776

nginx-0.0.7-2004-07-02-09:47:00 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 02 Jul 2004 05:47:00 +0000
parents 018569a8f09c
children 41437e4fd9b4
line wrap: on
line diff
--- 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));