Skip to content

Commit

Permalink
Wait for further messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Feb 24, 2025
1 parent abbd4db commit 2358d95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gel-tokio/src/raw/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,10 @@ async fn connect4(cfg: &Config, mut stream: gel_stream::RawStream) -> Result<Con
"Unexpected authentication response",
)));
}
ClientAuthResponse::Waiting | ClientAuthResponse::Complete => {
continue;
ClientAuthResponse::Complete => {
break;
}
ClientAuthResponse::Waiting => {}
ClientAuthResponse::Continue(message) => {
send_messages(
&mut stream,
Expand All @@ -438,6 +439,7 @@ async fn connect4(cfg: &Config, mut stream: gel_stream::RawStream) -> Result<Con
return Err(AuthenticationError::with_source(e));
}
}
msg = wait_message(&mut stream, &mut in_buf, &proto).await?;
}

let mut server_params = ServerParams::new();
Expand Down

0 comments on commit 2358d95

Please sign in to comment.