Browse Source

change TCP timeout from 30s to 10+10minute

yuguorong 2 years ago
parent
commit
effb8be15a
1 changed files with 1 additions and 1 deletions
  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
 )