Files
bun.sh/test/js/sql
Claude Bot 5c89286a08 fix(sql): ref MySQL poll when enqueueing request on idle connection
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>
2026-01-19 22:05:07 +00:00
..
2025-08-19 23:15:53 -07:00
2025-05-08 18:51:32 -07:00
2025-08-01 22:41:05 -07:00