Browse Source

enlarge timeout

pull/115/head
Max Lv 10 years ago
parent
commit
06f1a57c9b
1 changed files with 1 additions and 1 deletions
  1. 2
      src/local.c

2
src/local.c

@ -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;

Loading…
Cancel
Save