Skip to content

Commit c7003e9

Browse files
committed
fix connect
1 parent a905f9e commit c7003e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ngx_http_send_request.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ handle_connect(ngx_event_t *ev)
597597
return ctx->handler(NGX_DECLINED, NULL, 0, NULL, ctx->data);
598598
}
599599

600-
if (handle_io_event(ev) == NGX_ERROR) {
600+
if (test_connect(c) == NGX_ERROR || handle_io_event(ev) == NGX_ERROR) {
601601

602602
log_error(NGX_LOG_ERR, ctx, "connect", NULL);
603603
ngx_close_connection(c);

0 commit comments

Comments
 (0)