X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f397616e00afb4e9fb42709dfaf270e10fac90fa..2b2a47383124f9b62834778f61d2ccb1e55f6a0d:/sender.c diff --git a/sender.c b/sender.c index bf6e7b46..60820dd8 100644 --- a/sender.c +++ b/sender.c @@ -43,6 +43,7 @@ extern int inplace; extern int batch_fd; extern int write_batch; extern int file_old_total; +extern BOOL we_send_keepalive_messages; extern struct stats stats; extern struct file_list *cur_flist, *first_flist, *dir_flist; @@ -104,8 +105,8 @@ static struct sum_struct *receive_sums(int f) s->sums[i].len = s->blength; offset += s->sums[i].len; - if (allowed_lull && !(i % lull_mod)) - maybe_send_keepalive(); + if (we_send_keepalive_messages && !(i % lull_mod)) + maybe_send_keepalive(time(NULL), True); if (DEBUG_GTE(DELTASUM, 3)) { rprintf(FINFO,