Proper handling of DNS issues (#197)

* Fixed dns resolver issues
* fixed supported-variants in login
This commit is contained in:
Ben Gräf 2018-10-19 10:35:01 +02:00 committed by GitHub
parent 0d2f4d1c7a
commit 6687d56910
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 9 deletions

View file

@ -60,6 +60,14 @@ void Connection::notifyError(const std::string& error)
}
}
void Connection::notifyDNSError(const std::string& error)
{
ConnectionListener::Ptr listener = listener_.lock();
if (listener)
{
listener->scheduleOnDNSError(error);
}
}
Connection::Ptr establishConnection(const ConnectionListener::Ptr& listener,
ConnectionType type, const std::string& host, uint16_t port)