1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 01:15:38 +00:00

Align Timeout Value

This commit is contained in:
Shelikhoo 2020-06-03 09:12:06 +08:00
parent 8f45736dd3
commit 220b783caa
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -113,7 +113,9 @@ func defaultBufferPolicy() Buffer {
func SessionDefault() Session {
return Session{
Timeouts: Timeout{
Handshake: time.Second * 4,
//Align Handshake timeout with nginx client_header_timeout
//So that this value will not indicate server identity
Handshake: time.Second * 60,
ConnectionIdle: time.Second * 300,
UplinkOnly: time.Second * 1,
DownlinkOnly: time.Second * 1,