Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ditto
  • Loading branch information
d-a-v committed Apr 1, 2023
commit a199c8dbda901055d73b51d255a1944e791aff7b
6 changes: 3 additions & 3 deletions libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ bool WiFiClientSecureCtx::stop(unsigned int maxWaitMs) {
}

bool WiFiClientSecureCtx::flush(unsigned int maxWaitMs) {
auto savedNormal = _runtimeTimeout;
auto savedRuntime = _runtimeTimeout;
auto savedHandshake = _handshakeTimeout;
_runtimeTimeout = maxWaitMs;
_handshakeTimeout = maxWaitMs;
(void) _run_until(BR_SSL_SENDAPP);
_runtimeTimeout = savedNormal;
_runtimeTimeout = savedRuntime;
_handshakeTimeout = savedHandshake;
return WiFiClient::flush(maxWaitMs);
}
Expand Down Expand Up @@ -1680,7 +1680,7 @@ bool WiFiClientSecure::probeMaxFragmentLength(IPAddress ip, uint16_t port, uint1

void WiFiClientSecure::setTimeout (unsigned long timeout)
{
_ctx->setNormalTimeout(timeout);
_ctx->setRuntimeTimeout(timeout);
}

}; // namespace BearSSL
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class WiFiClientSecureCtx : public WiFiClient {
// consume bytes after use (see peekBuffer)
virtual void peekConsume (size_t consume) override;

void setNormalTimeout (unsigned long timeout) { _runtimeTimeout = timeout; }
void setRuntimeTimeout (unsigned long timeout) { _runtimeTimeout = timeout; }
void setHandshakeTimeout (unsigned long timeout) { _handshakeTimeout = timeout; }
unsigned long getHandshakeTimeout () const { return _handshakeTimeout; }

Expand Down