Skip to content

Commit

Permalink
reset more flags in connect_to_host to handle reconnect case
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyatgithub committed May 4, 2023
1 parent 1a0e04d commit 93606a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asio_client_connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ int asio_client_connection::connect_to_host(const std::string& dest_schema, cons
exit(1);
}
output_data_length = 0;
is_write_in_progress = false;
write_signaled = false;
output_buffer_index = 0;
is_client_stopped = false;

if (schema == "https")
{
Expand Down

0 comments on commit 93606a0

Please sign in to comment.