comparison src/http/ngx_http_upstream_round_robin.h @ 1284:be2b895d31e0

fix segfault when session was freed twice
author Igor Sysoev <igor@sysoev.ru>
date Tue, 10 Jul 2007 21:04:37 +0000
parents f16424aa5d89
children 8f5b5641966c
comparison
equal deleted inserted replaced
1283:a3f8d6d17b94 1284:be2b895d31e0
28 time_t fail_timeout; 28 time_t fail_timeout;
29 29
30 ngx_uint_t down; /* unsigned down:1; */ 30 ngx_uint_t down; /* unsigned down:1; */
31 31
32 #if (NGX_SSL) 32 #if (NGX_SSL)
33 ngx_ssl_session_t *ssl_session; 33 ngx_ssl_session_t *ssl_session; /* local to a process */
34 #endif 34 #endif
35 } ngx_http_upstream_rr_peer_t; 35 } ngx_http_upstream_rr_peer_t;
36 36
37 37
38 typedef struct { 38 typedef struct {
66 void *data); 66 void *data);
67 void ngx_http_upstream_free_round_robin_peer(ngx_peer_connection_t *pc, 67 void ngx_http_upstream_free_round_robin_peer(ngx_peer_connection_t *pc,
68 void *data, ngx_uint_t state); 68 void *data, ngx_uint_t state);
69 69
70 #if (NGX_HTTP_SSL) 70 #if (NGX_HTTP_SSL)
71 void ngx_http_upstream_save_round_robin_peer(ngx_peer_connection_t *pc, 71 ngx_int_t
72 ngx_http_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
73 void *data);
74 void ngx_http_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
72 void *data); 75 void *data);
73 #endif 76 #endif
74 77
75 78
76 79