d7b5f4f6d6
In the vpn client I've observed that 2 out of 3 times the disconnect procedure stalls out. Investigating in the logs these 5 are still running when we hit shutdown timeout. [TaskClient-nym_vpn_lib-mixnet_client_main-real_traffic_controller-ack_control-retransmission_request_listener] Polling shutdown failed: channel closed [TaskClient-nym_vpn_lib-mixnet_client_main-real_traffic_controller-out_queue_control] Polling shutdown failed: channel closed [TaskClient-gateway-packet-router] Polling shutdown failed: channel closed [TaskClient-nym_vpn_lib-mixnet_client_main-gateway_transceiver] Polling shutdown failed: channel closed [TaskClient-nym_vpn_lib-mixnet_client_main-mix_traffic_controller] Polling shutdown failed: channel closed I _think_ what was causing the problem here is that the task client in the packet router is not being awaited in an event loop like other client instances. Explictly drop it in the socket state to make sure it's not blocking shutdown.