Explorar o código

change TCP timeout from 30s to 10+10minute

yuguorong %!s(int64=2) %!d(string=hai) anos
pai
achega
effb8be15a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/ameter.go

+ 1 - 1
drivers/ameter.go

@@ -18,7 +18,7 @@ import (
 const (
 	DEF_SAMPLE_PERIOD        = 10 * time.Minute
 	DEF_SAMPLE_PEER_DURATION = 60 * time.Second
-	DEF_TCP_READ_TIMEOUT     = 30 * time.Second
+	DEF_TCP_READ_TIMEOUT     = (DEF_SAMPLE_PERIOD + 10*time.Minute)
 	POSTPONE_PERSIST_TIME    = 5 * time.Minute
 )