Signed-off-by: Greg Farnum <greg@inktank.com>
reader_running(false), reader_needs_join(false),
writer_running(false),
in_q(&(r->dispatch_queue)),
- keepalive(false),
+ send_keepalive(false),
close_on_empty(false),
connect_seq(0), peer_global_seq(0),
out_seq(0), in_seq(0), in_seq_acked(0) {
(is_queued() || in_seq > in_seq_acked)) {
// keepalive?
- if (keepalive) {
+ if (send_keepalive) {
pipe_lock.Unlock();
int rc = write_keepalive();
pipe_lock.Lock();
fault();
continue;
}
- keepalive = false;
+ send_keepalive = false;
}
// send ack?
DispatchQueue *in_q;
list<Message*> sent;
Cond cond;
- bool keepalive;
+ bool send_keepalive;
bool halt_delivery; //if a pipe's queue is destroyed, stop adding to it
bool close_on_empty;
__u32 get_out_seq() { return out_seq; }
- bool is_queued() { return !out_q.empty() || keepalive; }
+ bool is_queued() { return !out_q.empty() || send_keepalive; }
entity_addr_t& get_peer_addr() { return peer_addr; }
}
void _send_keepalive() {
assert(pipe_lock.is_locked());
- keepalive = true;
+ send_keepalive = true;
cond.Signal();
}
Message *_get_next_outgoing() {