You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ Reproduced — sending to an unreachable UDP port pins CPU at 100% on Linux.
Root cause:IP_RECVERR queues the ICMP error and raises EPOLLERR, but the error queue was never drained with MSG_ERRQUEUE — plain recvmmsg reports the error without dequeuing it, so epoll_wait busy-loops.
The diff is green on every lane that touches it — all Linux test lanes pass, 29436.test.ts passes everywhere, 0 review threads open. CI umbrella is red only on test/js/web/fetch/fetch-http2-client.test.ts (WebKit AtomStringImpl assertion in the HTTP/2 fetch client) and test-http-should-emit-close-when-connection-is-aborted.ts (Windows timeout, failing across builds 53958–53962 on main too). Neither touches UDP or packages/bun-usockets/. Ready for a maintainer to merge.
Fixed by #29768 (which landed the MSG_ERRQUEUE drain from #29473).
Verified on main (df84f8db1, Linux x64) with the exact repro — the ICMP error is now drained and surfaced to the error handler, and CPU stays idle instead of spinning at 100%:
Activity
github-actions commentedon Apr 18, 2026
Found 1 possible duplicate issue:
node:dgramemitsECONNREFUSEDrecvand exits in Bun1.3.12, but not1.3.11#29116This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
duongvanba commentedon Apr 18, 2026
this is not a duplicate problem 👎👎👎👎 DO NOT CLOSE
This is critical bug
Jarred-Sumner commentedon Apr 18, 2026
@robobun fix
robobun commentedon Apr 18, 2026
✅ Reproduced — sending to an unreachable UDP port pins CPU at 100% on Linux.
Root cause:
IP_RECVERRqueues the ICMP error and raisesEPOLLERR, but the error queue was never drained withMSG_ERRQUEUE— plainrecvmmsgreports the error without dequeuing it, soepoll_waitbusy-loops.Fix: → #29473
The diff is green on every lane that touches it — all Linux test lanes pass,
29436.test.tspasses everywhere, 0 review threads open. CI umbrella is red only ontest/js/web/fetch/fetch-http2-client.test.ts(WebKitAtomStringImplassertion in the HTTP/2 fetch client) andtest-http-should-emit-close-when-connection-is-aborted.ts(Windows timeout, failing across builds 53958–53962 on main too). Neither touches UDP orpackages/bun-usockets/. Ready for a maintainer to merge.Jarred-Sumner commentedon Apr 19, 2026
@robobun submit PR
duongvanba commentedon Apr 19, 2026
Omg so crazy, so no humman here right ? everything done with bot
Thank BunJS
udp: drain IP_RECVERR error queue with MSG_ERRQUEUE on EPOLLERR
udp: drain IP_RECVERR error queue with MSG_ERRQUEUE on EPOLLERR
udp: drain IP_RECVERR error queue with MSG_ERRQUEUE on EPOLLERR
robobun commentedon Jul 25, 2026
Fixed by #29768 (which landed the
MSG_ERRQUEUEdrain from #29473).Verified on main (
df84f8db1, Linux x64) with the exact repro — the ICMP error is now drained and surfaced to theerrorhandler, and CPU stays idle instead of spinning at 100%:Closing.