comparison src/stream/ngx_stream.h @ 6679:40e8ce405859

Stream: postpone session initialization under accept mutex. Previously, it was possible that some system calls could be invoked while holding the accept mutex. This is clearly wrong as it prevents incoming connections from being accepted as quickly as possible.
author Dmitry Volyntsev <xeioex@nginx.com>
date Tue, 06 Sep 2016 21:28:13 +0300
parents 0125b151c9a5
children 7357abd1fa8c
comparison
equal deleted inserted replaced
6678:0125b151c9a5 6679:40e8ce405859
182 int *captures; 182 int *captures;
183 u_char *captures_data; 183 u_char *captures_data;
184 #endif 184 #endif
185 185
186 ngx_uint_t status; 186 ngx_uint_t status;
187
188 #if (NGX_STREAM_SSL)
189 ngx_uint_t ssl; /* unsigned ssl:1; */
190 #endif
187 }; 191 };
188 192
189 193
190 typedef struct { 194 typedef struct {
191 ngx_int_t (*preconfiguration)(ngx_conf_t *cf); 195 ngx_int_t (*preconfiguration)(ngx_conf_t *cf);