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

Fixes #4626
This commit is contained in:
Harshavardhana authored and Krishna Srinivas committed 2017-07-18 09:30:46 -07:00
1 parent c59b995f7b
commit f8bd9cfd83
9 files changed
+159 -16

No files matched your search

+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)