undici
undici copied to clipboard
fix: make HTTP2 invalid headers recoverable (#4356)
- Add try-catch blocks around all session.request() calls in writeH2
- Implement automatic retry logic for ERR_HTTP2_INVALID_CONNECTION_HEADERS
- Handle expectContinue, regular request, and CONNECT method paths
- Destroy session and retry with new connection on first error
- Abort gracefully if retry also fails
- Add comprehensive test coverage for error handling
Fixes #4356
Status
- [x] I have read and agreed to the Developer's Certificate of Origin
- [x] Tested
- [x] Benchmarked (optional)
- [x] Documented
- [x] Review ready
- [x] In review
- [x] Merge ready
@metcoder95 Looks like AI slop.