Files
bun.sh/src
Claude Bot 431c5a3694 fix(http2): avoid multiple empty DATA frames when ending stream
This fixes an issue where Bun's HTTP/2 server implementation would send
multiple consecutive empty DATA frames when ending a stream, causing
Envoy proxy to abort with PROTOCOL_ERROR.

Changes:
1. In noTrailers(), send an empty HEADERS frame with END_STREAM flag
   instead of an empty DATA frame. This is more appropriate per RFC 7540
   Section 8.1 and avoids issues with proxies that limit consecutive
   empty frames.

2. In Http2Stream.end(), don't create an empty buffer when no chunk
   is provided. This prevents an unnecessary empty DATA frame from
   being sent before _final() is called.

Fixes #21759

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 07:30:32 +00:00
..
2026-01-23 00:10:48 -08:00
2026-01-23 11:02:26 -08:00
2026-01-23 11:02:26 -08:00
2026-01-23 11:02:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-12-25 14:00:58 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 02:17:55 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-25 11:06:24 -08:00
2025-11-10 14:38:26 -08:00
2026-01-07 12:33:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-23 11:02:26 -08:00
2025-12-01 21:59:11 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-23 11:02:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-23 11:02:26 -08:00