Skip to content

Commit

Permalink
feat: increase data transfer timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc committed May 19, 2021
1 parent 20a0d32 commit 7b9d2a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/modules/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Grap
// following issue has been fixed:
// https://github.com/filecoin-project/go-data-transfer/issues/172
MonitorPullChannels: false,
// Wait up to 30s for the other side to respond to an Open channel message
AcceptTimeout: 30 * time.Second,
// Wait up to 2m for the other side to respond to an Open channel message
AcceptTimeout: 2 * time.Minute,
// Send a restart message if the data rate falls below 1024 bytes / minute
Interval: time.Minute,
MinBytesTransferred: 1024,
Expand All @@ -151,9 +151,9 @@ func NewClientGraphsyncDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.Grap
RestartBackoff: time.Minute,
// After trying to restart 3 times, give up and fail the transfer
MaxConsecutiveRestarts: 3,
// Wait up to 30s for the other side to send a Complete message once all
// Wait up to 10m for the other side to send a Complete message once all
// data has been sent / received
CompleteTimeout: 30 * time.Second,
CompleteTimeout: 10 * time.Minute,
})
dt, err := dtimpl.NewDataTransfer(dtDs, filepath.Join(r.Path(), "data-transfer"), net, transport, dtRestartConfig)
if err != nil {
Expand Down

0 comments on commit 7b9d2a3

Please sign in to comment.