Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e45367
)
Calling maybe_send_keepalive() for protocol_version < 29 is
author
Wayne Davison
<wayned@samba.org>
Sat, 26 Feb 2005 06:43:15 +0000
(06:43 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 26 Feb 2005 06:43:15 +0000
(06:43 +0000)
now supported, though we can only try to flush the output
buffer if we're in a lull.
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
7d44962
..
035362e
100644
(file)
--- 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);
}