Fix zerialization of KeepAlive message

This commit is contained in:
Konstantin Knizhnik
2021-09-21 18:35:09 +03:00
parent 379f6b8638
commit e28960b816

View File

@@ -730,8 +730,9 @@ impl<'a> BeMessage<'a> {
}
BeMessage::KeepAlive(req) => {
buf.put_u8(b'k');
buf.put_u8(b'd');
write_body(buf, |buf| {
buf.put_u8(b'k');
buf.put_u64(req.sent_ptr);
buf.put_i64(req.timestamp);
buf.put_u8(if req.request_reply { 1u8 } else { 0u8 });