We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512d0d0 commit 0de0d3fCopy full SHA for 0de0d3f
libraries/HTTPClient/src/HTTPClient.cpp
@@ -966,14 +966,14 @@ bool HTTPClient::connect(void)
966
return false;
967
}
968
969
- // set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
970
- _client->setTimeout((_tcpTimeout + 500) / 1000);
971
-
972
if(!_client->connect(_host.c_str(), _port)) {
973
log_d("failed connect to %s:%u", _host.c_str(), _port);
974
975
976
+ // set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
+ _client->setTimeout((_tcpTimeout + 500) / 1000);
+
977
log_d(" connected to %s:%u", _host.c_str(), _port);
978
979
#ifdef HTTPCLIENT_1_1_COMPATIBLE
0 commit comments