mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
- Fix socket handler registration to route data to HTTP2Client instead of HTTPClient - Implement transferToHTTP2Client() for proper protocol upgrade handoff - Fix double-free bug in frame processing by removing problematic defer - Fix infinite loop in parseFrames with proper buffer management - Add safety checks and error handling for malformed frames - Make ActiveSocket public for proper socket context updates - Reuse existing h2_frame_parser types instead of duplicating them The HTTP/2 client now successfully: - Receives responses in the correct handler - Processes frames without memory crashes - Handles errors gracefully without crashing Co-authored-by: Claude <claude@anthropic.com>