-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Description
版本: 5e08034
shadowsocks-libev/src/server.c
Lines 1400 to 1401 in 5e08034
int request_timeout = min(MAX_REQUEST_TIMEOUT, listener->timeout) | |
+ rand() % MAX_REQUEST_TIMEOUT; |
在request_timeout之后 连接超时
log:
2019-07-11 09:26:16 INFO: accept a connection
request_timeout:57
2019-07-11 09:26:16 INFO: [25] connect to clients1.google.com:443
2019-07-11 09:26:16 INFO: found address name v4 address clients.l.google.com
2019-07-11 09:26:16 INFO: found address name v6 address clients.l.google.com
2019-07-11 09:26:16 INFO: successfully resolved clients1.google.com
2019-07-11 09:26:16 INFO: remote connected
2019-07-11 09:27:13 INFO: TCP connection timeout
2019-07-11 09:27:13 INFO: current remote connection: 0
2019-07-11 09:27:13 INFO: current server connection: 0
2019-07-11 09:27:14 INFO: accept a connection
request_timeout:46
2019-07-11 09:27:14 INFO: [25] connect to clients1.google.com:443
2019-07-11 09:27:14 INFO: found address name v4 address clients.l.google.com
2019-07-11 09:27:14 INFO: found address name v6 address clients.l.google.com
2019-07-11 09:27:14 INFO: successfully resolved clients1.google.com
2019-07-11 09:27:14 INFO: remote connected
2019-07-11 09:27:38 INFO: accept a connection
request_timeout:47
2019-07-11 09:27:38 INFO: [25] connect to www.googleapis.com:443
2019-07-11 09:27:38 INFO: found address name v4 address googleapis.l.google.com
2019-07-11 09:27:38 INFO: found address name v6 address googleapis.l.google.com
2019-07-11 09:27:38 INFO: successfully resolved www.googleapis.com
2019-07-11 09:27:38 INFO: remote connected
2019-07-11 09:28:00 INFO: TCP connection timeout
2019-07-11 09:28:00 INFO: current remote connection: 1
2019-07-11 09:28:00 INFO: current server connection: 1
2019-07-11 09:28:05 INFO: accept a connection
request_timeout:42
2019-07-11 09:28:05 INFO: [25] connect to accounts.google.com:443
2019-07-11 09:28:05 INFO: found address name v4 address accounts.google.com
2019-07-11 09:28:05 INFO: found address name v6 address accounts.google.com
2019-07-11 09:28:05 INFO: successfully resolved accounts.google.com
2019-07-11 09:28:05 INFO: remote connected
2019-07-11 09:28:25 INFO: TCP connection timeout
2019-07-11 09:28:25 INFO: current remote connection: 1
2019-07-11 09:28:25 INFO: current server connection: 1
2019-07-11 09:28:30 INFO: accept a connection
request_timeout:57
2019-07-11 09:28:30 INFO: [25] connect to clients1.google.com:443
2019-07-11 09:28:30 INFO: found address name v4 address clients.l.google.com
2019-07-11 09:28:30 INFO: found address name v6 address clients.l.google.com
2019-07-11 09:28:30 INFO: successfully resolved clients1.google.com
2019-07-11 09:28:30 INFO: remote connected
2019-07-11 09:28:42 INFO: accept a connection
request_timeout:33
2019-07-11 09:28:42 INFO: [25] connect to clients4.google.com:443
2019-07-11 09:28:42 INFO: found address name v4 address clients.l.google.com
2019-07-11 09:28:42 INFO: found address name v6 address clients.l.google.com
2019-07-11 09:28:42 INFO: successfully resolved clients4.google.com
2019-07-11 09:28:42 INFO: remote connected
2019-07-11 09:28:47 INFO: TCP connection timeout