Skip to content

Conversation

bluehat974
Copy link
Contributor

This PR will prevent infinite loop in connection.send('SELECT ...') function, when _bindings is in detached mode (no worker associated)

There is a while loop waiting header variable to be defined. However,this._bindings.pollPendingQuery(this._conn) will just emit a console.error and return undefined, which will cause infinite loop.

@carlopi if you have any improvement suggestion feel free.

Related issue: #1970

@carlopi
Copy link
Collaborator

carlopi commented Sep 24, 2025

Thanks! Makes sense to me, let's see CI

@carlopi carlopi merged commit b7c7561 into duckdb:main Sep 26, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants