mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 22:10:39 +00:00
Fix zerialization of KeepAlive message
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user