Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit f4f53a0

Browse files
committed
OPENRESTY-127 HTTPS healthchecks issue
1 parent da50d14 commit f4f53a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ngx_http_upstream_check_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ ngx_http_upstream_check_ssl_init(ngx_http_upstream_check_peer_t *peer,
12261226
return;
12271227

12281228
failed:
1229+
c->error = 1;
12291230
ngx_http_upstream_check_status_update(peer, 0);
12301231
ngx_http_upstream_check_clean_event(peer);
12311232
}
@@ -1243,6 +1244,7 @@ ngx_http_upstream_check_ssl_handshake(ngx_connection_t *c)
12431244
ngx_del_timer(c->read);
12441245

12451246
if (!c->ssl->handshaked) {
1247+
c->error = 1;
12461248
ngx_http_upstream_check_status_update(peer, 0);
12471249
ngx_http_upstream_check_clean_event(peer);
12481250
return;

0 commit comments

Comments
 (0)