- Platform: various
- Subsystem: http2
The test issues in #21561 highlighted that we have an issue in HTTP/2 with dealing with aborted connections. At this point, it’s not obvious how to do so in a cross-platform manner without triggering uncaught exceptions.
This part of the test should not be necessary:
|
// TODO(addaleax): This is a *hack*. HTTP/2 needs to have a proper way of |
|
// dealing with this kind of issue. |
|
process.once('uncaughtException', (err) => { |
|
if (err.code === 'ECONNRESET') return; |
|
throw err; |
|
}); |
/cc @nodejs/http2 @apapirovski