Fix HTTP Client failing to connect because of wrong timeout (#6633)

This commit is contained in:
Me No Dev
2022-04-27 03:36:38 +03:00
committed by GitHub
parent 45583af189
commit f2cfe78705
2 changed files with 9 additions and 8 deletions

View File

@ -276,7 +276,7 @@ protected:
/// request handling
String _host;
uint16_t _port = 0;
int32_t _connectTimeout = -1;
int32_t _connectTimeout = HTTPCLIENT_DEFAULT_TCP_TIMEOUT;
bool _reuse = true;
uint16_t _tcpTimeout = HTTPCLIENT_DEFAULT_TCP_TIMEOUT;
bool _useHTTP10 = false;