mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
app/vminsert/netstorage: increase timeout for waiting for ack
message after sending big data block to vmstorage
This commit is contained in:
parent
d435029d10
commit
716bbe79d4
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ func (sn *storageNode) sendToConn(bc *handshake.BufferedConn, buf []byte) error
|
|||
|
||||
// Wait for `ack` from vmstorage.
|
||||
// This guarantees that the message has been fully received by vmstorage.
|
||||
deadline = time.Now().Add(5 * time.Second)
|
||||
deadline = time.Now().Add(timeout)
|
||||
if err := bc.SetReadDeadline(deadline); err != nil {
|
||||
return fmt.Errorf("cannot set read deadline for reading `ack` to vmstorage: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue