diff --git a/src/http/modules/ngx_http_ssl_module.c b/src/http/modules/ngx_http_ssl_module.c index 16248ba0c..22a280fb3 100644 --- a/src/http/modules/ngx_http_ssl_module.c +++ b/src/http/modules/ngx_http_ssl_module.c @@ -313,6 +313,7 @@ static ngx_command_t ngx_http_ssl_commands[] = { ngx_null_command }; + static ngx_http_module_t ngx_http_ssl_module_ctx = { ngx_http_ssl_add_variables, /* preconfiguration */ ngx_http_ssl_init, /* postconfiguration */ diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 5cb533720..10bb23224 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1812,6 +1812,7 @@ ngx_http_upstream_ssl_handshake_handler(ngx_connection_t *c) ngx_http_upstream_t *u; r = c->data; + u = r->upstream; if (c->ssl && c->ssl->handshaked) { @@ -1838,6 +1839,7 @@ ngx_http_upstream_ssl_handshake_handler(ngx_connection_t *c) } ngx_http_upstream_ssl_handshake(r, u, c); + ngx_http_run_posted_requests(c); } diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index 417eeeff8..2a79e6bef 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -61,8 +61,8 @@ typedef struct { ngx_uint_t status; ngx_msec_t response_time; ngx_msec_t connect_time; - ngx_str_t backend_ssl_protocol; - ngx_str_t backend_ssl_cipher; + ngx_str_t backend_ssl_protocol; + ngx_str_t backend_ssl_cipher; ngx_msec_t header_time; ngx_msec_t queue_time; off_t response_length; @@ -269,6 +269,7 @@ typedef struct { ngx_uint_t redirect; /* unsigned redirect:1; */ } ngx_http_upstream_header_t; + typedef struct { ngx_list_t headers; ngx_list_t trailers;