From 861550446ad694b179e1a01f8d1dd262903edf15 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 5 Apr 2018 23:55:31 -0700 Subject: [PATCH] Allow upto 15 minutes of timeskew for RPC calls as well (#5774) Default installations of cloned VMs on VMware like env might experience serious problems with time skewing, allow for a higher value instead of 3 seconds we are moving to 15 minutes just like API level skew. Access to internet and configuring ntp might not be possible, in such situations providing atleast a 15 minute skew could cater for majority of situations. --- cmd/rpc-common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rpc-common.go b/cmd/rpc-common.go index ea790bd76..da03220a5 100644 --- a/cmd/rpc-common.go +++ b/cmd/rpc-common.go @@ -23,9 +23,9 @@ import ( "github.com/minio/dsync" ) -// Allow any RPC call request time should be no more/less than 3 seconds. -// 3 seconds is chosen arbitrarily. -const rpcSkewTimeAllowed = 3 * time.Second +// Allow any RPC call request time should be no more/less than 15 minutes. +// 15 minute is chosen to be best for majority use cases. +const rpcSkewTimeAllowed = 15 * time.Minute // RPC V1 - Initial version // RPC V2 - format.json XL version changed to 2