Klaus Demo nginx / e49d933
Upstream: reliably detect connection failures with SSL peers. Ruslan Ermilov 8 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12811281 {
12821282 ngx_int_t rc;
12831283
1284 if (ngx_http_upstream_test_connect(c) != NGX_OK) {
1285 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR);
1286 return;
1287 }
1288
12841289 if (ngx_ssl_create_connection(u->conf->ssl, c,
12851290 NGX_SSL_BUFFER|NGX_SSL_CLIENT)
12861291 != NGX_OK)