Minimal reproduction for a bug where HTTPS requests hang indefinitely after ~1-10 minutes of continuous requests in Bun >= 1.3.0.
When making continuous HTTPS requests (e.g., AWS SDK v3 calls), after approximately 1-2 minutes some requests start hanging indefinitely - they never receive a response.
Affected versions:
- Bun >= 1.3.0 (broken)
- Bun <= 1.2.23 (working)
- Node.js (working)
- AWS credentials configured (
~/.aws/credentialsor environment variables) - Bun >= 1.3.0 installed
# Install dependencies
bun install
# Run with Bun (will hang after ~1-2 minutes)
bun run start
# Run with Node.js (works correctly)
bun run start:nodeAll requests complete (success or error).
After ~1-2 minutes, some requests hang indefinitely:
[2026-01-14T10:47:36.476Z] #470 START: CloudFormation:ListStacks
[2026-01-14T10:48:06.474Z] #470 HANGING: CloudFormation:ListStacks (29998ms) - REQUEST NEVER COMPLETED!
No known workaround. Downgrade to Bun <= 1.2.23 or use Node.js.
Note: Setting keepAlive: false does NOT prevent the issue.
Using different version of aws-sdk didn't work either.