Merge pull request #3723 from nspcc-dev/fix-deal-timeout

blockfetcher: decrease default pool deal timeout
This commit is contained in:
Roman Khimov 2024-12-04 17:29:11 +03:00 committed by GitHub
commit 8952922c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,11 +39,17 @@ const (
defaultDownloaderWorkersCount = 100
)
// Constants related to NeoFS pool request timeouts. Such big values are used to avoid
// NeoFS pool timeouts during block search and download.
// Constants related to NeoFS pool request timeouts.
const (
defaultDialTimeout = 10 * time.Minute
defaultStreamTimeout = 10 * time.Minute
// defaultDialTimeout is a default timeout used to establish connection with
// NeoFS storage nodes.
defaultDialTimeout = 30 * time.Second
// defaultStreamTimeout is a default timeout used for NeoFS streams processing.
// It has significantly large value to reliably avoid timeout problems with heavy
// SEARCH requests.
defaultStreamTimeout = 10 * time.Minute
// defaultHealthcheckTimeout is a timeout for request to NeoFS storage node to
// decide if it is alive.
defaultHealthcheckTimeout = 10 * time.Second
)