From c21f6d455df4abf9ef6cb103b03a3e994921ec7b Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 1 Sep 2021 19:42:57 +0200 Subject: [PATCH] Fix ESP32 TLS reconnects --- lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp index 5f8bd999a..720ca2580 100755 --- a/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp +++ b/lib/lib_ssl/tls_mini/src/WiFiClientSecureLightBearSSL.cpp @@ -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