cep21 / healthcheck_nginx_upstreams

Health checks upstreams for nginx
http://wiki.nginx.org/NginxHttpHealthcheckModule
253 stars 597 forks source link

have a question to ask in function[ngx_http_upstream_check_recv_handler] #23

Open liuhaicheng opened 7 years ago

liuhaicheng commented 7 years ago
if (peer->state != NGX_HTTP_CHECK_SEND_DONE) {

    if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
        goto check_recv_fail;
    }

    return;
}

why need to add this code