We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe045d8 commit 3b61e4dCopy full SHA for 3b61e4d
libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp
@@ -201,17 +201,8 @@ bool WiFiClientSecureCtx::stop(unsigned int maxWaitMs) {
201
}
202
203
bool WiFiClientSecureCtx::flush(unsigned int maxWaitMs) {
204
- auto savedTimeout = _timeout;
205
- _timeout = maxWaitMs;
206
-
207
- auto savedHandshake = _handshakeTimeout;
208
- _handshakeTimeout = maxWaitMs;
209
210
- auto result = _run_until(BR_SSL_SENDAPP);
211
- _timeout = savedTimeout;
212
- _handshakeTimeout = savedHandshake;
213
214
- if (result != -1 && ctx_present()) {
+ const auto result = _run_until(BR_SSL_SENDAPP);
+ if (result != -1 && _engineConnected()) {
215
return WiFiClient::flush(maxWaitMs);
216
217
0 commit comments