forked from TrueCloudLab/frostfs-node
[#1746] network: Set timeout for streaming operations
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
0140ac354b
commit
4354359aed
11 changed files with 38 additions and 11 deletions
4
pkg/network/cache/multi.go
vendored
4
pkg/network/cache/multi.go
vendored
|
@ -47,6 +47,10 @@ func (x *multiClient) createForAddress(addr network.Address) clientcore.Client {
|
|||
prmDial.SetTimeout(x.opts.DialTimeout)
|
||||
}
|
||||
|
||||
if x.opts.StreamTimeout > 0 {
|
||||
prmDial.SetStreamTimeout(x.opts.StreamTimeout)
|
||||
}
|
||||
|
||||
if x.opts.ResponseCallback != nil {
|
||||
prmInit.SetResponseInfoCallback(x.opts.ResponseCallback)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue