Commit 04b64e9c authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Log local endpoint and error on uTP accept failure.

For instance, this may help if a local firewall blocks sending messages to a
remote endpoint and reports back an ICMP error to the socket (example:
<https://stackoverflow.com/a/23869102/273348>).
parent 7c664ce1
......@@ -51,7 +51,8 @@ void UtpOuiServiceServer::start_listen(asio::yield_context yield)
if (cancel) return;
if (ec) {
assert(ec != asio::error::operation_aborted);
LOG_ERROR("UtpOuiServiceServer: failed to accept, will retry in 5s");
LOG_ERROR("UtpOuiServiceServer: failed to accept, will retry in 5s"
, " lep:", local_ep, " ec:", ec.message());
async_sleep(_ex, 5s, cancel, yield[ec]);
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment