Put it in prepare_write_message_footer() where it belongs.
con->out_kvec[v].iov_len = sizeof(m->footer);
con->out_kvec_bytes += sizeof(m->footer);
con->out_kvec_left++;
+ con->out_more = m->more_to_follow;
con->out_msg = NULL; /* we're done with this one */
- con->out_more = 0; /* end of message */
}
/*
} else {
/* no, queue up footer too and be done */
prepare_write_message_footer(con, v);
- con->out_more = con->out_msg->more_to_follow;
}
set_bit(WRITE_PENDING, &con->state);