mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
Upstream: reliably detect connection failures with SSL peers.
This commit is contained in:
parent
5274f023a2
commit
e49d933ebc
@ -1282,6 +1282,11 @@ ngx_http_upstream_ssl_init_connection(ngx_http_request_t *r,
|
||||
{
|
||||
ngx_int_t rc;
|
||||
|
||||
if (ngx_http_upstream_test_connect(c) != NGX_OK) {
|
||||
ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ngx_ssl_create_connection(u->conf->ssl, c,
|
||||
NGX_SSL_BUFFER|NGX_SSL_CLIENT)
|
||||
!= NGX_OK)
|
||||
|
Loading…
Reference in New Issue
Block a user