We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81f0f9 commit f62add5Copy full SHA for f62add5
https/HTTPSServer.cpp
@@ -183,7 +183,6 @@ void HTTPSServer::loop() {
183
184
// If initializing did not work, discard the new socket immediately
185
if (socketIdentifier < 0) {
186
- Serial.println("Fail.");
187
delete _connections[freeConnectionIdx];
188
_connections[freeConnectionIdx] = NULL;
189
}
@@ -199,6 +198,8 @@ void HTTPSServer::loop() {
199
198
uint8_t HTTPSServer::setupSSLCTX() {
200
_sslctx = SSL_CTX_new(TLSv1_2_server_method());
201
if (_sslctx) {
+ // Set SSL Timeout to 5 minutes
202
+ SSL_CTX_set_timeout(_sslctx, 300);
203
return 1;
204
} else {
205
_sslctx = NULL;
0 commit comments