Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never restart stopped TCE #801

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions implementation/endpoints/src/tcp_client_endpoint_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,9 @@ void tcp_client_endpoint_impl::send_cbk(boost::system::error_code const &_error,
if (its_host) {
its_host->on_disconnect(shared_from_this());
}
restart(true);

if (!sending_blocked_)
restart(true);
}
service_t its_service(0);
method_t its_method(0);
Expand Down Expand Up @@ -1025,7 +1027,9 @@ void tcp_client_endpoint_impl::wait_until_sent(const boost::system::error_code &

std::shared_ptr<endpoint_host> its_ep_host = endpoint_host_.lock();
its_ep_host->on_disconnect(shared_from_this());
restart(true);

if (!sending_blocked_)
restart(true);
} else {
std::chrono::milliseconds its_timeout(VSOMEIP_MAX_TCP_SENT_WAIT_TIME);
boost::system::error_code ec;
Expand Down