comparison src/http/ngx_http_upstream_round_robin.h @ 5136:88a302caca75

Upstream: removed rudiments of upstream connection caching. This functionality is now provided by ngx_http_upstream_keepalive_module.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 25 Mar 2013 14:51:44 +0000
parents 382c523d253a
children efc84a5723b3
comparison
equal deleted inserted replaced
5135:0811376954e4 5136:88a302caca75
40 40
41 typedef struct ngx_http_upstream_rr_peers_s ngx_http_upstream_rr_peers_t; 41 typedef struct ngx_http_upstream_rr_peers_s ngx_http_upstream_rr_peers_t;
42 42
43 struct ngx_http_upstream_rr_peers_s { 43 struct ngx_http_upstream_rr_peers_s {
44 ngx_uint_t number; 44 ngx_uint_t number;
45 ngx_uint_t last_cached;
46 45
47 /* ngx_mutex_t *mutex; */ 46 /* ngx_mutex_t *mutex; */
48 ngx_connection_t **cached;
49 47
50 ngx_uint_t total_weight; 48 ngx_uint_t total_weight;
51 49
52 unsigned single:1; 50 unsigned single:1;
53 unsigned weighted:1; 51 unsigned weighted:1;