Procházet zdrojové kódy

Align Timeout Value

Shelikhoo před 5 roky
rodič
revize
220b783caa
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      features/policy/policy.go

+ 3 - 1
features/policy/policy.go

@@ -113,7 +113,9 @@ func defaultBufferPolicy() Buffer {
 func SessionDefault() Session {
 func SessionDefault() Session {
 	return Session{
 	return Session{
 		Timeouts: Timeout{
 		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,
 			ConnectionIdle: time.Second * 300,
 			UplinkOnly:     time.Second * 1,
 			UplinkOnly:     time.Second * 1,
 			DownlinkOnly:   time.Second * 1,
 			DownlinkOnly:   time.Second * 1,