From df0f210002065432dd10e99bdb6528b362df5aa2 Mon Sep 17 00:00:00 2001 From: Joseph Oravec Date: Fri, 3 May 2024 02:46:12 -0400 Subject: [PATCH] unset is_sending_ during tce restart During tce restart() queue_ will be drained, messages printed like tce::restart: dropping message: remote:10.6.0.3:30510 (30fd): [0402.0001.018e] size: 23 and is_sending_ doesn't get unset. Later in connect_cbk there's nothing to send, nobody will clear the flag, and the train logic remains blocked from sending. This needs to be cleared during socket restart --- implementation/endpoints/src/tcp_client_endpoint_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/implementation/endpoints/src/tcp_client_endpoint_impl.cpp b/implementation/endpoints/src/tcp_client_endpoint_impl.cpp index f42d93d41..4b97b73de 100644 --- a/implementation/endpoints/src/tcp_client_endpoint_impl.cpp +++ b/implementation/endpoints/src/tcp_client_endpoint_impl.cpp @@ -125,6 +125,7 @@ void tcp_client_endpoint_impl::restart(bool _force) { } self->queue_.clear(); self->queue_size_ = 0; + self->is_sending_ = false; } VSOMEIP_WARNING << "tce::restart: local: " << address_port_local << " remote: " << self->get_address_port_remote();