mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Also set timeout on already existing connections
This commit is contained in:
@ -259,6 +259,9 @@ void HTTPClient::setAuthorization(const char * auth) {
|
||||
*/
|
||||
void HTTPClient::setTimeout(uint16_t timeout) {
|
||||
_tcpTimeout = timeout;
|
||||
if(connected()) {
|
||||
_tcp->setTimeout(timeout);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user