mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
When an HTTP/2 GOAWAY frame is received, the ClientHttp2Session was immediately destroying all streams instead of allowing eligible streams to complete gracefully per RFC 7540 Section 6.8. Changed the GOAWAY handler to use close() instead of destroy(), matching the behavior of ServerHttp2Session. With non-zero error codes, errors are still emitted to streams before closing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>