Skip to content

Add .unref() to timeout calls#47

Open
slifty wants to merge 1 commit intodynajoe:masterfrom
slifty:46-fix-timeouts
Open

Add .unref() to timeout calls#47
slifty wants to merge 1 commit intodynajoe:masterfrom
slifty:46-fix-timeouts

Conversation

@slifty
Copy link
Copy Markdown

@slifty slifty commented Apr 8, 2026

This PR fixes a bug where the timeouts could prevent processes from being closed.

This fix requires a bump to the node types, since unref was added in node 9. The project claims to require node 14 so bumping to v9 is not out of scope.

Resolves #46

Without `.unref` a timeout can prevent a process from closing.  This
isn't the intent of the timeout, and it can manifest in issues if tinypg
is used in the context of test runners.

This also requires a bump to the node types, since unref was added in
node 9.  The project claims to require node 14 so bumping to v9 is not
out of scope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pool timeout causes connections to stay open after tests end

1 participant