From 9e6bcc9df5dc589562a16689ce8a2a548f76b77f Mon Sep 17 00:00:00 2001 From: Faruk Kasumovic Date: Thu, 7 Mar 2019 18:55:59 +0100 Subject: [PATCH 1/2] Change how properties single linked list is released from memory --- common.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/common.c b/common.c index 7a4b32b..6409769 100644 --- a/common.c +++ b/common.c @@ -32,13 +32,11 @@ property_list_t *new_property_list() { } void free_properties(property_list_t *root) { - if (root != 0) { - property_list_t *tmp = 0; - do { - tmp = root->pnext; - free(root); - root = tmp; - } while(tmp); + property_list_t *tmp = 0; + while(root) { + tmp = root->pnext; + free(root); + root = tmp; } } From 3805d8a4c1968fcacab7886e1a974c47b7e08388 Mon Sep 17 00:00:00 2001 From: Faruk Kasumovic Date: Fri, 31 May 2019 10:40:03 +0200 Subject: [PATCH 2/2] 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