http2: send error text in case of ALPN mismatch · nodejs/node@4471369 · GitHub
Skip to content

Commit 4471369

Browse files
committed
http2: send error text in case of ALPN mismatch
Send a human-readable HTTP/1 response in case of an unexpected ALPN protocol. This helps with debugging this condition, since previously the only result of it would be a closed socket. PR-URL: #18986 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 12856b0 commit 4471369

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

lib/internal/http2/core.js

Lines changed: 11 additions & 2 deletions

test/parallel/test-http2-https-fallback.js

Lines changed: 10 additions & 3 deletions

0 commit comments

Comments
 (0)