From 3805d8a4c1968fcacab7886e1a974c47b7e08388 Mon Sep 17 00:00:00 2001 From: Faruk Kasumovic Date: Fri, 31 May 2019 10:40:03 +0200 Subject: [PATCH] Increase deadline timeout for estimating snapshot send size, from 15 to 60 seconds --- sendrecv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendrecv.go b/sendrecv.go index f57d82e..652d7dc 100644 --- a/sendrecv.go +++ b/sendrecv.go @@ -241,7 +241,7 @@ func (d *Dataset) SendSize(FromName string, flags SendFlags) (size int64, err er errch <- tmpe }() - r.SetReadDeadline(time.Now().Add(15 * time.Second)) + r.SetReadDeadline(time.Now().Add(60 * time.Second)) var data []byte if data, err = ioutil.ReadAll(r); err != nil { return