Ensure data makes it to the client (#446)

* Ensure data makes it to the client

* flush all buffers
This commit is contained in:
Lev Kokotov
2023-05-18 16:41:22 -07:00
committed by GitHub
parent 37e3349c24
commit 100778670c

View File

@@ -1313,7 +1313,7 @@ where
.receive_server_message(server, &address, &pool, &self.stats.clone())
.await?;
match write_all_half(&mut self.write, &response).await {
match write_all_flush(&mut self.write, &response).await {
Ok(_) => (),
Err(err) => {
server.mark_bad();
@@ -1408,7 +1408,7 @@ where
.receive_server_message(server, address, pool, client_stats)
.await?;
match write_all_half(&mut self.write, &response).await {
match write_all_flush(&mut self.write, &response).await {
Ok(_) => (),
Err(err) => {
server.mark_bad();