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 @@ type browserPeerAPIHandlers struct {
func registerBrowserPeerRPCRouter(mux *router.Router) error {
bpHandlers := &browserPeerAPIHandlers{}
bpRPCServer := rpc.NewServer()
bpRPCServer := newRPCServer()
err := bpRPCServer.RegisterName("BrowserPeer", bpHandlers)
if err != nil {
return traceError(err)