Commit 3221f451 authored by Wayne Davison's avatar Wayne Davison

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.
parent 9e453674
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment