If hostname resolution fails, do not try all possible ports

This commit is contained in:
Florent Le Coz
2015-07-09 15:30:24 +02:00
parent ac6a74595c
commit ece4b4969b
3 changed files with 13 additions and 3 deletions
@@ -256,6 +256,8 @@ protected:
std::string cares_error;
#endif // CARES_FOUND
bool hostname_resolution_failed;
private:
TCPSocketHandler(const TCPSocketHandler&) = delete;
TCPSocketHandler(TCPSocketHandler&&) = delete;