mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
## Summary - Make `Http2Server.setTimeout()` and `Http2SecureServer.setTimeout()` return `this` to enable method chaining - Matches Node.js behavior where `server.setTimeout(1000).listen()` works Fixes #24924 ## Test plan - [x] Test that `Http2Server.setTimeout()` returns server instance - [x] Test that `Http2SecureServer.setTimeout()` returns server instance - [x] Test method chaining works (e.g., `server.setTimeout(1000).close()`) - [x] Tests pass with debug build, fail with system bun 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
11 KiB
11 KiB