http->process = ngx_js_http_process_status_line;
- if (http->timeout) {
- ngx_add_timer(http->peer.connection->read, http->timeout);
- ngx_add_timer(http->peer.connection->write, http->timeout);
- }
+ ngx_add_timer(http->peer.connection->read, http->timeout);
+ ngx_add_timer(http->peer.connection->write, http->timeout);
#if (NGX_SSL)
if (http->ssl != NULL && http->peer.connection->ssl == NULL) {
}
}
- if (!wev->timer_set && http->timeout) {
+ if (!wev->timer_set) {
ngx_add_timer(wev, http->timeout);
}
}