Upstream: reliably detect connection failures with SSL peers.
Ruslan Ermilov
8 years ago
1281 | 1281 | { |
1282 | 1282 | ngx_int_t rc; |
1283 | 1283 | |
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 | ||
1284 | 1289 | if (ngx_ssl_create_connection(u->conf->ssl, c, |
1285 | 1290 | NGX_SSL_BUFFER|NGX_SSL_CLIENT) |
1286 | 1291 | != NGX_OK) |