undici icon indicating copy to clipboard operation
undici copied to clipboard

fix: make HTTP2 invalid headers recoverable (#4356)

Open tawseefnabi opened this issue 6 months ago • 1 comments

  • 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

tawseefnabi avatar Aug 08 '25 13:08 tawseefnabi

@metcoder95 Looks like AI slop.

Uzlopak avatar Aug 10 '25 09:08 Uzlopak