mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-08-01 11:44:42 +02:00
Merge pull request #178 from vortigont/ssl_fastrst
reset wrong SSL connections instead of close
This commit is contained in:
@@ -71,10 +71,10 @@ void AsyncWebServerRequest::_onData(void* buf, size_t len) {
|
|||||||
#ifndef ASYNC_TCP_SSL_ENABLED
|
#ifndef ASYNC_TCP_SSL_ENABLED
|
||||||
if (_parseState == PARSE_REQ_START && len && ((uint8_t*)buf)[0] == 0x16) { // 0x16 indicates a Handshake message (SSL/TLS).
|
if (_parseState == PARSE_REQ_START && len && ((uint8_t*)buf)[0] == 0x16) { // 0x16 indicates a Handshake message (SSL/TLS).
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
log_d("SSL/TLS handshake detected: closing connection");
|
log_d("SSL/TLS handshake detected: resetting connection");
|
||||||
#endif
|
#endif
|
||||||
_parseState = PARSE_REQ_FAIL;
|
_parseState = PARSE_REQ_FAIL;
|
||||||
_client->close();
|
_client->abort();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user