Skip to content

Commit f62add5

Browse files
committed
Enable SSL Session Reuse
1 parent c81f0f9 commit f62add5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

https/HTTPSServer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ void HTTPSServer::loop() {
183183

184184
// If initializing did not work, discard the new socket immediately
185185
if (socketIdentifier < 0) {
186-
Serial.println("Fail.");
187186
delete _connections[freeConnectionIdx];
188187
_connections[freeConnectionIdx] = NULL;
189188
}
@@ -199,6 +198,8 @@ void HTTPSServer::loop() {
199198
uint8_t HTTPSServer::setupSSLCTX() {
200199
_sslctx = SSL_CTX_new(TLSv1_2_server_method());
201200
if (_sslctx) {
201+
// Set SSL Timeout to 5 minutes
202+
SSL_CTX_set_timeout(_sslctx, 300);
202203
return 1;
203204
} else {
204205
_sslctx = NULL;

0 commit comments

Comments
 (0)