From ac576c75d49d4416a87bdf0ff01995a268384b96 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 19 Mar 2021 14:08:50 +0200 Subject: [PATCH] amend restart config --- node/modules/client.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/node/modules/client.go b/node/modules/client.go index bedbf6841..ad3b10bb4 100644 --- a/node/modules/client.go +++ b/node/modules/client.go @@ -138,15 +138,14 @@ func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Grap // data-transfer push channel restart configuration dtRestartConf := dtimpl.ChannelRestartConfig(channelmonitor.Config{ - AcceptTimeout: 100 * time.Millisecond, - Interval: 100 * time.Millisecond, - MinBytesTransferred: 1, + AcceptTimeout: 30 * time.Second, + Interval: 1 * time.Minute, + MinBytesTransferred: 1024, ChecksPerInterval: 10, - RestartBackoff: 500 * time.Millisecond, - MaxConsecutiveRestarts: 5, - CompleteTimeout: 100 * time.Millisecond, + RestartBackoff: 10 * time.Minute, + MaxConsecutiveRestarts: 3, + CompleteTimeout: 30 * time.Second, }) - //dtRestartConfig := dtimpl.PushChannelRestartConfig(time.Minute, 10, 1024, 10*time.Minute, 3) dt, err := dtimpl.NewDataTransfer(dtDs, filepath.Join(r.Path(), "data-transfer"), net, transport, sc, dtRestartConf) if err != nil { return nil, err