mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 13:03:50 +00:00
enlarge the default timeout
This commit is contained in:
+1
-1
@@ -1023,7 +1023,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (timeout == NULL) {
|
||||
timeout = "10";
|
||||
timeout = "60";
|
||||
}
|
||||
|
||||
if (local_addr == NULL) {
|
||||
|
||||
+1
-1
@@ -708,7 +708,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (timeout == NULL) {
|
||||
timeout = "10";
|
||||
timeout = "60";
|
||||
}
|
||||
|
||||
if (local_addr == NULL) {
|
||||
|
||||
+2
-4
@@ -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;
|
||||
@@ -754,7 +752,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (timeout == NULL) {
|
||||
timeout = "10";
|
||||
timeout = "60";
|
||||
}
|
||||
|
||||
if (local_addr == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user