Skip to content

Commit 75fad28

Browse files
committed
WiFiClientSecure: increase default connection timeout to 15 sec
1 parent d4c6e27 commit 75fad28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecure.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ ClientContext* SSLContext::s_io_ctx = nullptr;
298298

299299
WiFiClientSecure::WiFiClientSecure()
300300
{
301+
// TLS handshake may take more than the 5 second default timeout
302+
_timeout = 15000;
301303
}
302304

303305
WiFiClientSecure::~WiFiClientSecure()

0 commit comments

Comments
 (0)