app/vminsert/netstorage: increase timeout for waiting for ack message after sending big data block to vmstorage

This commit is contained in:
Aliaksandr Valialkin 2020-04-28 11:18:41 +03:00
parent d435029d10
commit 716bbe79d4

View file

@ -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)
}