Skip to content

Commit 2b205ff

Browse files
committed
HevConfig: Set the default read/write timeout to 300 seconds.
1 parent a281a2a commit 2b205ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dns:
102102
#misc:
103103
# task-stack-size: 16384 # task stack size (bytes)
104104
# connect-timeout: 5000 # connect timeout (ms)
105-
# read-write-timeout: 60000 # read-write timeout (ms)
105+
# read-write-timeout: 300000 # read-write timeout (ms)
106106
# log-file: stderr # stdout or file-path
107107
# log-level: warn # debug, info or error
108108
# pid-file: /run/hev-socks5-tproxy.pid

conf/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dns:
5252
# connect timeout (ms)
5353
# connect-timeout: 5000
5454
# read-write timeout (ms)
55-
# read-write-timeout: 60000
55+
# read-write-timeout: 300000
5656
# stdout, stderr or file-path
5757
# log-file: stderr
5858
# debug, info, warn or error

src/hev-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static char pid_file[1024];
2828
static int task_stack_size = 16384;
2929
static int udp_recv_buffer_size = 1048576;
3030
static int connect_timeout = 5000;
31-
static int read_write_timeout = 60000;
31+
static int read_write_timeout = 300000;
3232
static int limit_nofile = 65535;
3333
static int log_level = HEV_LOGGER_WARN;
3434

0 commit comments

Comments
 (0)