Increase deadline timeout for estimating snapshot send size, from 15 to 60 seconds

This commit is contained in:
Faruk Kasumovic 2019-05-31 10:40:03 +02:00
parent 9e6bcc9df5
commit 3805d8a4c1
1 changed files with 1 additions and 1 deletions

View File

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