comparison src/core/ngx_connection.c @ 6031:c8acea7c7041

Removed ngx_connection_t.lock.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Mar 2015 06:43:19 +0300
parents 457ec43dd8d5
children 94ce52db3367
comparison
equal deleted inserted replaced
6030:4652f8f26b12 6031:c8acea7c7041
940 940
941 if (c->write->active || c->write->disabled) { 941 if (c->write->active || c->write->disabled) {
942 ngx_del_event(c->write, NGX_WRITE_EVENT, NGX_CLOSE_EVENT); 942 ngx_del_event(c->write, NGX_WRITE_EVENT, NGX_CLOSE_EVENT);
943 } 943 }
944 } 944 }
945
946 #if (NGX_OLD_THREADS)
947
948 /*
949 * we have to clean the connection information before the closing
950 * because another thread may reopen the same file descriptor
951 * before we clean the connection
952 */
953
954 ngx_unlock(&c->lock);
955
956 #endif
957 945
958 if (c->read->posted) { 946 if (c->read->posted) {
959 ngx_delete_posted_event(c->read); 947 ngx_delete_posted_event(c->read);
960 } 948 }
961 949