Skip to content

@slonik/pg-driver@49.15.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 23:57
15ff091

Minor Changes

  • e905699 Thanks @gajus! - add socketTimeout configuration, which closes a connection if the server does not send any data for that long while a query is in progress, e.g. because a proxy stopped forwarding traffic without closing the connection. The query fails with SocketTimeoutError and the pool replaces the connection. The timeout restarts whenever data arrives, so queries and streams that keep returning rows are not closed, and it does not apply while a connection is idle (in the pool, or held between queries) or while a stream waits for its consumer. It is disabled by default.

Patch Changes

  • Updated dependencies [e905699, e905699]:
    • @slonik/driver@49.15.0
    • @slonik/errors@49.15.0
    • @slonik/sql-tag@49.15.0
    • @slonik/types@49.15.0
    • @slonik/utilities@49.15.0