File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -303,9 +303,16 @@ func main() {
303303 if err != nil {
304304 return nil , err
305305 }
306- remoteInfoCache , err = c .GetInfo (opts .RemoteAdminAddr )
306+ for retry := 0 ; retry < 3 ; retry ++ {
307+ remoteInfoCache , err = c .GetInfo (opts .RemoteAdminAddr )
308+ if err != nil {
309+ log .Printf ("Get remote server info error: %v" , err )
310+ continue
311+ }
312+ break
313+ }
307314 if err != nil {
308- return nil , fmt .Errorf ("Get remote server info error: %v. Please make sure server is online and accepting connections from this client address" , err )
315+ return nil , fmt .Errorf ("failed to get remote server info, please make sure server is online and accepting connections from this client address" )
309316 }
310317 return remoteInfoCache , nil
311318 }
You can’t perform that action at this time.
0 commit comments