rpc: Do not use read/write deadlines for rpc connections. (#4647)

Fixes #4626
This commit is contained in:
Harshavardhana
2017-07-18 08:30:46 -08:00
committed by Krishna Srinivas
parent c59b995f7b
commit f8bd9cfd83
9 changed files with 159 additions and 16 deletions

View File

@@ -79,6 +79,9 @@ func TestBuffConnReadTimeout(t *testing.T) {
if terr != nil {
t.Fatalf("failed to write to client. %v", terr)
}
// Removes all deadlines if any.
bufconn.RemoveTimeout()
}()
c, err := net.Dial("tcp", "localhost:"+port)