mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-02 05:18:50 -05:00
Calling maybe_send_keepalive() for protocol_version < 29 is
now supported, though we can only try to flush the output buffer if we're in a lull.
This commit is contained in:
2
io.c
2
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user