Version
v16.4.0
Platform
Linux 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
A simple http2 server, with no external libraries fails to catch a TLS error.
I added error listeners to server, session and stream, but none of them manages to catch the following error:
node:events:371
throw er; // Unhandled 'error' event
^
Error: 139932573210560:error:14094123:SSL routines:ssl3_read_bytes:application data after close notify:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1608:
Emitted 'error' event on TLSSocket instance at:
at TLSSocket._emitTLSError (node:_tls_wrap:900:10)
at TLSWrap.onerror (node:_tls_wrap:432:11) {
library: 'SSL routines',
function: 'ssl3_read_bytes',
reason: 'application data after close notify',
code: 'ERR_SSL_APPLICATION_DATA_AFTER_CLOSE_NOTIFY'
}
How often does it reproduce? Is there a required condition?
Daily on a low traffic server (~200 daily users).
What is the expected behavior?
To be able to catch the error or http2 module to be able to handle it
What do you see instead?
Unhandled error event
Additional information
No response
Version
v16.4.0
Platform
Linux 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
A simple http2 server, with no external libraries fails to catch a TLS error.
I added error listeners to server, session and stream, but none of them manages to catch the following error:
node:events:371 throw er; // Unhandled 'error' event ^ Error: 139932573210560:error:14094123:SSL routines:ssl3_read_bytes:application data after close notify:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1608: Emitted 'error' event on TLSSocket instance at: at TLSSocket._emitTLSError (node:_tls_wrap:900:10) at TLSWrap.onerror (node:_tls_wrap:432:11) { library: 'SSL routines', function: 'ssl3_read_bytes', reason: 'application data after close notify', code: 'ERR_SSL_APPLICATION_DATA_AFTER_CLOSE_NOTIFY' }How often does it reproduce? Is there a required condition?
Daily on a low traffic server (~200 daily users).
What is the expected behavior?
To be able to catch the error or http2 module to be able to handle it
What do you see instead?
Unhandled error event
Additional information
No response