Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 5305:12b750d35162
Upstream: reliably detect connection failures with SSL peers.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 29 Jul 2013 13:23:16 +0400 |
parents | d3eab5e2df5f |
children | 13a5f4765887 |
comparison
equal
deleted
inserted
replaced
5304:d3eab5e2df5f | 5305:12b750d35162 |
---|---|
1280 ngx_http_upstream_ssl_init_connection(ngx_http_request_t *r, | 1280 ngx_http_upstream_ssl_init_connection(ngx_http_request_t *r, |
1281 ngx_http_upstream_t *u, ngx_connection_t *c) | 1281 ngx_http_upstream_t *u, ngx_connection_t *c) |
1282 { | 1282 { |
1283 ngx_int_t rc; | 1283 ngx_int_t rc; |
1284 | 1284 |
1285 if (ngx_http_upstream_test_connect(c) != NGX_OK) { | |
1286 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); | |
1287 return; | |
1288 } | |
1289 | |
1285 if (ngx_ssl_create_connection(u->conf->ssl, c, | 1290 if (ngx_ssl_create_connection(u->conf->ssl, c, |
1286 NGX_SSL_BUFFER|NGX_SSL_CLIENT) | 1291 NGX_SSL_BUFFER|NGX_SSL_CLIENT) |
1287 != NGX_OK) | 1292 != NGX_OK) |
1288 { | 1293 { |
1289 ngx_http_upstream_finalize_request(r, u, | 1294 ngx_http_upstream_finalize_request(r, u, |