diff options
| author | Wayne Davison <wayned@samba.org> | 2005-02-26 06:43:15 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-02-26 06:43:15 +0000 |
| commit | 3221f451a0d8deffcfe677a9d39ca2f6d7b43cc2 (patch) | |
| tree | a48a1091fd32dabc60118c3850eee25b667016ba /io.c | |
| parent | 9e4536748d3d661baed082031192571a00807094 (diff) | |
| download | android_external_rsync-3221f451a0d8deffcfe677a9d39ca2f6d7b43cc2.tar.gz android_external_rsync-3221f451a0d8deffcfe677a9d39ca2f6d7b43cc2.tar.bz2 android_external_rsync-3221f451a0d8deffcfe677a9d39ca2f6d7b43cc2.zip | |
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.
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |
