X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9e2409ab2213cf560264dcd34d8537b6a7be4e89..32cbfe7b17ba8ec661fc27fd773909709d100e8a:/io.c diff --git a/io.c b/io.c index 7d44962f..035362e9 100644 --- a/io.c +++ b/io.c @@ -639,6 +639,8 @@ void maybe_send_keepalive(int allowed_lull, int ndx) { if (time(NULL) - last_io >= allowed_lull) { if (!iobuf_out || !iobuf_out_cnt) { + if (protocol_version < 29) + return; /* there's nothing we can do */ write_int(sock_f_out, ndx); write_shortint(sock_f_out, ITEM_IS_NEW); }