Skip to content
LavaFlowPreview

Project:shop

Docs (opens in a new tab)

Error: connect ETIMEDOUT <ip>:<port>

Diagnosis

Requests time out once the database runs out of connections.

Root cause

The database pool opens a new connection for every request and never releases it.

Evidence

  • LOGError: connect ETIMEDOUT 10.0.4.12:5432

    2026-10-29T14:39:58Z

Confidence: Medium

Files

  • src/db.js

Suggested fix

Reuse one pool and release each client after its query.

Loading