Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.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 | 52eb762c68a9 |
children | d3c15c7831eb |
comparison
equal
deleted
inserted
replaced
5103:05a56ebb084a | 5104:93713d4b99c3 |
---|---|
1116 ngx_time_t *tp; | 1116 ngx_time_t *tp; |
1117 ngx_connection_t *c; | 1117 ngx_connection_t *c; |
1118 | 1118 |
1119 r->connection->log->action = "connecting to upstream"; | 1119 r->connection->log->action = "connecting to upstream"; |
1120 | 1120 |
1121 r->connection->single_connection = 0; | |
1122 | |
1123 if (u->state && u->state->response_sec) { | 1121 if (u->state && u->state->response_sec) { |
1124 tp = ngx_timeofday(); | 1122 tp = ngx_timeofday(); |
1125 u->state->response_sec = tp->sec - u->state->response_sec; | 1123 u->state->response_sec = tp->sec - u->state->response_sec; |
1126 u->state->response_msec = tp->msec - u->state->response_msec; | 1124 u->state->response_msec = tp->msec - u->state->response_msec; |
1127 } | 1125 } |