mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dhtproxy: enhance error handling & msg for push
This commit is contained in:
1 parent
a001e0cafd
commit
477ff59e91
2 files changed
+58
-50
No files matched your search
+1
-3
@@ -283,9 +283,7 @@ Client::async_connect(ConnectionCb cb)
|
||||
const asio::ip::tcp::endpoint& endpoint){
|
||||
// only reacts if all endpoints fail
|
||||
if (ec){
|
||||
logger_->e("[http::client] [connection:%i] error opening: %s for %s:%lu",
|
||||
conn->id(), ec.message().c_str(),
|
||||
endpoint.address().to_string().c_str(), endpoint.port());
|
||||
logger_->e("[http::client] [connection] failed to connect to any endpoints");
|
||||
close_connection(conn->id());
|
||||
if (cb)
|
||||
cb(nullptr);
|
||||
|
||||
Reference in new issue
Block a user