From cb105c626c0eca28a8be825b8b7e90fb124f6c2f Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 3 Mar 2015 09:49:01 -0800 Subject: [PATCH] rafthttp: kill connection timeout TODO --- rafthttp/peer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rafthttp/peer.go b/rafthttp/peer.go index 391f19c8a..5da67d491 100644 --- a/rafthttp/peer.go +++ b/rafthttp/peer.go @@ -32,9 +32,8 @@ const ( // tcp keepalive failing to detect a bad connection, which is at minutes level. // For long term streaming connections, rafthttp pkg sends application level linkHeartbeat // 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. - // TODO: kill the short term connection. ConnReadTimeout = 5 * time.Second ConnWriteTimeout = 5 * time.Second