Merge pull request #13033 from s-hadinger/fix_esp32_tlss

Fix ESP32 TLS reconnects
This commit is contained in:
s-hadinger 2021-09-01 19:52:30 +02:00 committed by GitHub
commit 5fcfd42df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,7 @@ void WiFiClientSecure_light::stop(void) {
void WiFiClientSecure_light::flush(void) {
(void) _run_until(BR_SSL_SENDAPP);
WiFiClient::flush();
// don't call flush on ESP32 - its behavior is different and empties the receive buffer - which we don't want
}
#endif