We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc23c6 commit 237f7d9Copy full SHA for 237f7d9
libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
@@ -840,6 +840,7 @@ bool HTTPClient::connect(void)
840
}
841
842
_tcp = _transportTraits->create();
843
+ _tcp->setTimeout(_tcpTimeout);
844
845
if(!_tcp->connect(_host.c_str(), _port)) {
846
DEBUG_HTTPCLIENT("[HTTP-Client] failed connect to %s:%u\n", _host.c_str(), _port);
@@ -854,8 +855,6 @@ bool HTTPClient::connect(void)
854
855
return false;
856
857
- // set Timeout for readBytesUntil and readStringUntil
858
- _tcp->setTimeout(_tcpTimeout);
859
860
#ifdef ESP8266
861
_tcp->setNoDelay(true);
0 commit comments