|
|
@ -726,7 +726,7 @@ struct remote* new_remote(int fd, int timeout) |
|
|
|
ev_io_init(&remote->recv_ctx->io, remote_recv_cb, fd, EV_READ); |
|
|
|
ev_io_init(&remote->send_ctx->io, remote_send_cb, fd, EV_WRITE); |
|
|
|
ev_timer_init(&remote->send_ctx->watcher, remote_timeout_cb, timeout, 0); |
|
|
|
ev_timer_init(&remote->recv_ctx->watcher, remote_timeout_cb, timeout, timeout * 10); |
|
|
|
ev_timer_init(&remote->recv_ctx->watcher, remote_timeout_cb, timeout, timeout * 60); |
|
|
|
remote->recv_ctx->remote = remote; |
|
|
|
remote->send_ctx->remote = remote; |
|
|
|
return remote; |
|
|
|