Skip to content

Commit e158839

Browse files
committed
fix: conn leak in /accounts/:stake_address/utxos
1 parent 687b7ea commit e158839

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [6.4.0] - 2026-03-30
99

1010
### Changed
1111

1212
- Replaced `idle_session_timeout` (server-side Postgres setting) with `idleTimeoutMillis` (client-side pg-pool setting) for idle connection cleanup. Set via `dbSync.idleTimeoutMs` in config or `BLOCKFROST_CONFIG_DBSYNC_IDLE_TIMEOUT_MS` env var (value in milliseconds). Disabled by default (pg-pool falls back to its own 10,000ms default). The previous `dbSync.idleSessionTimeoutMs` / `BLOCKFROST_CONFIG_DBSYNC_IDLE_SESSION_TIMEOUT_MS` options are removed.
1313
- Exposed `min` pool size option. Set via `dbSync.minConnections` in config or `BLOCKFROST_CONFIG_DBSYNC_MIN_CONN` env var. Disabled by default (pg-pool defaults to 0).
1414

15+
### Fixed
16+
17+
- Fixed connection leak in `/accounts/:stake_address/utxos` where the DB connection was not released on 404 responses
18+
1519
## [6.3.4] - 2026-03-17
1620

1721
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockfrost-backend-ryo",
3-
"version": "6.3.4",
3+
"version": "6.4.0",
44
"description": "",
55
"keywords": [],
66
"license": "Apache-2.0",

src/routes/accounts/stake-address/utxos.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ async function route(fastify: FastifyInstance) {
3232
);
3333

3434
if (query404.rows.length === 0) {
35+
gracefulRelease(clientDbSync);
3536
return handle404(reply);
3637
}
3738

0 commit comments

Comments
 (0)