fix(proto): flush written startup message
This commit is contained in:
parent
c1744711d3
commit
505f59b354
4 changed files with 14 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ pub async fn do_client_handshake(
|
|||
) -> Result<HandshakeResponse, ClientHandshakeError> {
|
||||
let startup_message: StartupMessageData = request.into();
|
||||
writer.write_startup_message(startup_message).await?;
|
||||
writer.flush().await?;
|
||||
|
||||
let auth = reader.read_proto().await?;
|
||||
if !matches!(auth, BackendMessage::AuthenticationOk(AuthenticationOkData { status: 0 })) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue