We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee59c1 commit b986041Copy full SHA for b986041
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
@@ -1165,7 +1165,7 @@ bool HTTPClient::connect(void)
1165
1166
1167
// set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
1168
- _client->setTimeout(_tcpTimeout + 500); /* / 1000 removed, WifiClient setTimeout changed to ms */
+ _client->setTimeout(_tcpTimeout);
1169
1170
log_d(" connected to %s:%u", _host.c_str(), _port);
1171
0 commit comments