Try other resolved IPs if one fails to connect

This commit is contained in:
Haoyu Qiu
2021-07-11 17:43:52 +08:00
parent 9d38ebdc3c
commit fd52e18d19
4 changed files with 48 additions and 9 deletions

View File

@@ -37,6 +37,7 @@ class HTTPClientTCP : public HTTPClient {
private:
Status status = STATUS_DISCONNECTED;
IP::ResolverID resolving = IP::RESOLVER_INVALID_ID;
Array ip_candidates;
int conn_port = -1;
String conn_host;
bool ssl = false;