| 478 | } |
| 479 | |
| 480 | tcp_server_endpoint_impl::connection::~connection() { |
| 481 | |
| 482 | auto its_server(server_.lock()); |
| 483 | if (its_server) { |
| 484 | auto its_routing_host(its_server->routing_host_.lock()); |
| 485 | if (its_routing_host) { |
| 486 | its_routing_host->remove_subscriptions(its_server->local_.port(), remote_address_, remote_port_); |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | // ensure socket close() before boost destructor |
| 491 | // otherwise boost asio removes linger, which may leave connection in TIME_WAIT |
| 492 | VSOMEIP_INFO_P << instance_name_ << "endpoint > " << this; |
| 493 | stop(); |
| 494 | } |
| 495 | |
| 496 | tcp_server_endpoint_impl::connection::ptr |
| 497 | tcp_server_endpoint_impl::connection::create(const std::weak_ptr<tcp_server_endpoint_impl>& _server, std::uint32_t _max_message_size, |
nothing calls this directly
no test coverage detected