Files
bun.sh/test-certs
Claude b4e5646b36 Fix HTTP/2 client: socket handler, memory management, and frame processing
- 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>
2025-08-08 00:39:57 +02:00
..