comparison src/core/ngx_connection.c @ 5104:93713d4b99c3

Removed c->single_connection flag. The c->single_connection was intended to be used as lock mechanism to serialize modifications of request object from several threads working with client and upstream connections. The flag is redundant since threads in nginx have never been used that way.
author Valentin Bartenev <vbart@nginx.com>
date Thu, 07 Mar 2013 18:07:16 +0000
parents 484aec758d2c
children a29c574d61fa
comparison
equal deleted inserted replaced
5103:05a56ebb084a 5104:93713d4b99c3
898 } 898 }
899 899
900 c->read->closed = 1; 900 c->read->closed = 1;
901 c->write->closed = 1; 901 c->write->closed = 1;
902 902
903 if (c->single_connection) { 903 ngx_unlock(&c->lock);
904 ngx_unlock(&c->lock); 904 c->read->locked = 0;
905 c->read->locked = 0; 905 c->write->locked = 0;
906 c->write->locked = 0;
907 }
908 906
909 ngx_mutex_unlock(ngx_posted_events_mutex); 907 ngx_mutex_unlock(ngx_posted_events_mutex);
910 908
911 #else 909 #else
912 910