Skip to content

Commit

Permalink
enlarge the default timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Jul 14, 2015
1 parent e4a795d commit 8283e51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ int main(int argc, char **argv)
}

if (timeout == NULL) {
timeout = "10";
timeout = "60";
}

if (local_addr == NULL) {
Expand Down
2 changes: 1 addition & 1 deletion src/redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ int main(int argc, char **argv)
}

if (timeout == NULL) {
timeout = "10";
timeout = "60";
}

if (local_addr == NULL) {
Expand Down
6 changes: 2 additions & 4 deletions src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,7 @@ static 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,
min(MAX_CONNECT_TIMEOUT,
timeout),
0);
min(MAX_CONNECT_TIMEOUT, timeout), 0);
remote->recv_ctx->remote = remote;
remote->recv_ctx->connected = 0;
remote->send_ctx->remote = remote;
Expand Down Expand Up @@ -754,7 +752,7 @@ int main(int argc, char **argv)
}

if (timeout == NULL) {
timeout = "10";
timeout = "60";
}

if (local_addr == NULL) {
Expand Down

0 comments on commit 8283e51

Please sign in to comment.