mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
rpc: Do not use read/write deadlines for rpc connections. (#4647)
Fixes #4626
This commit is contained in:
committed by
Krishna Srinivas
parent
c59b995f7b
commit
f8bd9cfd83
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user