mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
When a MySQL connection becomes idle, `updateReferenceType()` unrefs the poll_ref. However, when a new query is enqueued via `enqueueRequest()`, it did not call `updateReferenceType()` to ref the poll again. This caused queries to hang on Windows when an async fs operation (like `fs.promises.readdir()`) ran between queries. The fix adds `updateReferenceType()` call in `enqueueRequest()` to ensure the poll_ref is properly ref'd when new queries are added to an idle connection. Fixes #24130 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>