WhatBrokeToday
FAQ
Bun

Bun node:http closeAllConnections() and close() Leaves Idle Connection Open

medium

Is it fixed? Not yet.

Ongoing since Nov 21, 06:59 UTC. First reported Nov 21, 06:59 UTC.

What happened

Bun 1.4.x introduces a regression where calling server.closeAllConnections() and server.close() leaves idle TCP connections open if no bytes have been sent yet by the client. The issue affects Linux x64 environments and works correctly in version 1.3.11.

What caused it?

Under active investigation. No report has identified a root cause yet.

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    node:http: closeAllConnections()/close() leave an idle connection (no bytes sent yet) open on 1.4.x (regression from 1.3.11)

    Source

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    node:http: closeAllConnections()/close() leave an idle connection (no bytes sent yet) open on 1.4.x (regression from 1.3.11)(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5+a7733435c, also 1.4.6-canary.1+98eae327f. Works on 1.3.11+af24e281e. What platform is your computer? Linux x64 (GitHub Actions ubuntu-latest). What steps can reproduce the bug? A client opens a TCP connection to a node:http server and sends nothing yet. The server then calls server.closeAllConnections() and server.close(). import { createServer } from "node:http"; import { createConnection } from "node:net"; const t0 = performance.now(); const log = (m) =>…

    by cjhyy 0upvotes 1comments

FAQ

What happened in the Bun issue?

Bun 1.4.x introduces a regression where calling server.closeAllConnections() and server.close() leaves idle TCP connections open if no bytes have been sent yet by the client. The issue affects Linux x64 environments and works correctly in version 1.3.11.

What is affected by the Bun issue?

Bun (versions: 1.4.5, 1.4.6-canary).

When did the Bun issue start and end?

It started Nov 21, 06:59 UTC and is still ongoing (33 min so far). This page updates as it develops.

How do I get alerts for Bun?

Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed

Where does this information come from?

WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.