Browse Source

rafthttp: kill connection timeout TODO

Xiang Li 10 years ago
parent
commit
cb105c626c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      rafthttp/peer.go

+ 1 - 2
rafthttp/peer.go

@@ -32,9 +32,8 @@ const (
 	// tcp keepalive failing to detect a bad connection, which is at minutes level.
 	// tcp keepalive failing to detect a bad connection, which is at minutes level.
 	// For long term streaming connections, rafthttp pkg sends application level linkHeartbeat
 	// For long term streaming connections, rafthttp pkg sends application level linkHeartbeat
 	// to keep the connection alive.
 	// to keep the connection alive.
-	// For short term pipeline connections, rafthttp MUST kill the connection to avoid it being
+	// For short term pipeline connections, the connection MUST be killed to avoid it being
 	// put back to http pkg connection pool.
 	// put back to http pkg connection pool.
-	// TODO: kill the short term connection.
 	ConnReadTimeout  = 5 * time.Second
 	ConnReadTimeout  = 5 * time.Second
 	ConnWriteTimeout = 5 * time.Second
 	ConnWriteTimeout = 5 * time.Second