Skip to content

Commit db1140c

Browse files
committed
add logs
1 parent e0a9cac commit db1140c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/TcpAdapterProxy.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ namespace aws { namespace iot { namespace securedtunneling {
376376
BOOST_LOG_SEV(this->log, trace) << "Post-reset TCP drain complete. Closing TCP socket for service id " << service_id << " connection id " << connection_id;
377377
BOOST_LOG_SEV(this->log, info) << "Disconnected from: " << connection_to_reset->socket().remote_endpoint();
378378
connection_to_reset->socket_.close();
379+
delete_tcp_socket(tac, service_id, connection_id);
379380
*tcp_write_buffer_drain_complete = true;
380381
if (*web_socket_write_buffer_drain_complete)
381382
{
@@ -2019,10 +2020,14 @@ namespace aws { namespace iot { namespace securedtunneling {
20192020
{
20202021
async_send_stream_start(tac, service_id, new_connection_id);
20212022
}
2022-
else
2023+
else if (!tac.adapter_config.is_v2_message_format)
20232024
{
20242025
async_send_connection_start(tac, service_id, new_connection_id);
20252026
}
2027+
else
2028+
{
2029+
BOOST_LOG_SEV(log, debug) << "Can not send stream start or connection start. Tried to use connection id: " << new_connection_id;
2030+
}
20262031

20272032
do_accept_tcp_connection(tac, retry_config, service_id, local_port, false);
20282033
}

0 commit comments

Comments
 (0)