Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd368475

Browse files
committed
Add flush() to front-end messages
The PostgreSQL wire protocol has a "Flush" message, which can be used bythe clients for long-lived connections. Add a flush() helper for it.
1 parent97db777 commitd368475

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎postgres-protocol/src/message/frontend.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ where
271271
})
272272
}
273273

274+
#[inline]
275+
pubfnflush(buf:&mutBytesMut){
276+
buf.put_u8(b'H');
277+
write_body(buf, |_|Ok::<(), io::Error>(())).unwrap();
278+
}
279+
274280
#[inline]
275281
pubfnsync(buf:&mutBytesMut){
276282
buf.put_u8(b'S');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp