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
+1 -3
View File
@@ -17,8 +17,6 @@
package cmd
import (
"net/rpc"
router "github.com/gorilla/mux"
)
@@ -39,7 +37,7 @@ func registerS3PeerRPCRouter(mux *router.Router) error {
},
}
s3PeerRPCServer := rpc.NewServer()
s3PeerRPCServer := newRPCServer()
err := s3PeerRPCServer.RegisterName("S3", s3PeerHandlers)
if err != nil {
return traceError(err)