fix(client): reject pipelined TLS altname errors by marko1olo · Pull Request #5373 · nodejs/undici (original) (raw)

This relates to...

Fixes #5355

Rationale

ERR_TLS_CERT_ALTNAME_INVALID had a special connect-error path that asserted client[kRunning] === 0 before rejecting pending requests for the current server name. With pipelining > 1, requests can already be in the running segment when the TLS hostname validation error is reported, so the assertion can crash the process instead of rejecting the affected request promises.

Changes

Features

N/A

Bug Fixes

Breaking Changes and Deprecations

N/A

Status

Tested