Browse Source

add comment for HTTPTIMEOUT constant

Xiang Li 12 years ago
parent
commit
c135c1e299
1 changed files with 2 additions and 0 deletions
  1. 2 0
      etcd.go

+ 2 - 0
etcd.go

@@ -91,6 +91,8 @@ const (
 	ELECTIONTIMTOUT  = 200 * time.Millisecond
 	HEARTBEATTIMEOUT = 50 * time.Millisecond
 	// Timeout for internal raft http connection
+	// The origin timeout for http is 45 seconds 
+	// which is too long for our usage.
  	HTTPTIMEOUT      = time.Second
 )