Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 2bce868

Browse files
Merge pull request #178 from vortigont/ssl_fastrst
reset wrong SSL connections instead of close
2 parents c1be1c4 + 10280aa commit 2bce868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebRequest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ void AsyncWebServerRequest::_onData(void* buf, size_t len) {
7171
#ifndef ASYNC_TCP_SSL_ENABLED
7272
if (_parseState == PARSE_REQ_START && len && ((uint8_t*)buf)[0] == 0x16) { // 0x16 indicates a Handshake message (SSL/TLS).
7373
#ifdef ESP32
74-
log_d("SSL/TLS handshake detected: closing connection");
74+
log_d("SSL/TLS handshake detected: resetting connection");
7575
#endif
7676
_parseState = PARSE_REQ_FAIL;
77-
_client->close();
77+
_client->abort();
7878
return;
7979
}
8080
#endif

0 commit comments

Comments
 (0)