We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c7116b commit 17adb9dCopy full SHA for 17adb9d
libraries/HTTPClient/src/HTTPClient.cpp
@@ -495,7 +495,7 @@ void HTTPClient::setTimeout(uint16_t timeout)
495
{
496
_tcpTimeout = timeout;
497
if(connected()) {
498
- _client->setTimeout(timeout + 500); /* / 1000 removed, WifiClient setTimeout changed to ms */
+ _client->setTimeout(timeout);
499
}
500
501
@@ -1151,7 +1151,7 @@ bool HTTPClient::connect(void)
1151
1152
1153
// set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
1154
- _client->setTimeout(_tcpTimeout + 500); /* / 1000 removed, WifiClient setTimeout changed to ms */
+ _client->setTimeout(_tcpTimeout);
1155
1156
log_d(" connected to %s:%u", _host.c_str(), _port);
1157
0 commit comments