mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Auto-reconnect for regular authRPC client. (#3506)
Implement a storage rpc specific rpc client, which does not reconnect unnecessarily. Instead reconnect is handled at a different layer for storage alone. Rest of the calls using AuthRPC automatically reconnect, i.e upon an error equal to `rpc.ErrShutdown` they dial again and call the requested method again.
This commit is contained in:
@@ -93,6 +93,10 @@ var (
|
||||
// giving up on the remote disk entirely.
|
||||
globalMaxStorageRetryThreshold = 3
|
||||
|
||||
// Attempt to retry only this many number of times before
|
||||
// giving up on the remote RPC entirely.
|
||||
globalMaxAuthRPCRetryThreshold = 1
|
||||
|
||||
// Add new variable global values here.
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user