Dead websocket connections are never reaped
Los mantenedores suelen responder en 3 días
@samkelly-dev ya está trabajando en esto.
Desde el 16/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- prometheus, redis, typescript
- Área
- backend, observability
Línea de trabajo
Start in src/api/websocket.ts and src/ws/fanout.ts, where clients and pairClients are registered and removed, and trace what removal currently leaves behind. Add a configurable ping interval and missed-pong limit, close and unregister silent clients, and export a connected-clients gauge through prom-client. Done when a vitest test in src/tests shows both maps emptied after removal and a slow but responding client stays connected. Run it with npx vitest run, not jest.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Background
Neither src/api/websocket.ts nor src/ws/fanout.ts contains any ping, pong or
heartbeat handling. A TCP connection that dies without a close frame — a laptop
lid closing, a phone losing signal, a NAT mapping expiring — stays in the
clients map indefinitely. The server keeps serialising and queueing updates
for a peer that is gone.
fanout.ts keeps two maps keyed by client id, so every such ghost also holds a
subscription entry that makes every fanout loop slightly more expensive, forever.
What to build
- A periodic ping to every connected client.
- Track pong responses; a client that misses a configurable number of
consecutive pings is closed and unregistered. - Make sure unregistering cleans up both
clientsandpairClients, so no
subscription entry is orphaned. - A gauge of currently connected clients, so a leak is visible on the dashboard.
Acceptance criteria
- Clients are pinged on a configurable interval
- A client that stops responding is closed and removed
- Both internal maps are cleaned up on removal, asserted by a test
- A connected-clients gauge is exported
- A normal client with a slow but live connection is not disconnected
Drips Wave · Complexity: Easy · 100 points
Repo: Divinity-Labs/Lens. Node + TypeScript, Fastify, Prisma on Postgres,
Redis for queues, Prometheus via prom-client.
Run the tests: npm test. The tests are vitest, not jest. Running jest
against this repo reports "66 suites, 0 tests" and means nothing. A single file
is npx vitest run src/__tests__/yourfile.test.ts.
Load test (prices) is already failing on main and has been for some
time. It is not your PR that broke it. Every other check should be green.
This service prices real assets on Stellar mainnet. A number that is wrong
is worse than a number that is missing, because a caller cannot tell the
difference. Prefer failing loudly over returning a plausible value.
Never elide an address, a contract id or a key in code, a comment or a test
fixture. A previous batch wrote a shortened contract id in an issue text and
five contributors invented plausible-looking ids to fill the gap. Write the
whole thing or do not write it at all.
The house pattern for an outbound deadline already exists — see
src/alerts/delivery.ts, which passes signal: AbortSignal.timeout(10_000) to
fetch. Where an issue below asks for a timeout, copy that, do not invent a
second convention.
Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk
- Lenguaje dominante
- TypeScript
- Estrellas
- 4
- Forks
- 71
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 144
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Divinity-Labs/Lens
-
Webhook retries have no jitter, so failures synchronisePosiblemente ocupada @Richard-tobi la tomó hace 9 días. Abiertoarea:reliability difficulty:easy help wanted points:100 Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Divinity-Labs/Lens#341 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
upsertPricePoints can synthesize an event id from the wall clock, breaking dedupePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Divinity-Labs/Lens#620 ·
Los mantenedores suelen responder en 3 días
-
GraphQL queries bypass the per-route scope their REST equivalents requirePosiblemente ocupada @sparkysolutions10-pixel la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Divinity-Labs/Lens#618 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Live Service Spec Drift ReportAbiertoarea:tests automated live-spec-report
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
Divinity-Labs/Lens#606 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
The key is accepted only as a bearer token, and nothing says soPosiblemente ocupada @krsnak la tomó hace 8 días. Abiertoarea:docs difficulty:easy help wanted points:100 Stellar Wave
Divinity-Labs/Lens#512 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
Todos los issues de Divinity-Labs/Lens
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
awslabs/visual-asset-management-system#804 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
restatedev/sdk-typescript#813 ·
-
bug desktop P1 session XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Merit-Systems/x402scan#1312 ·
-
type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure/apiops-cli#331 ·
Los mantenedores suelen responder en 3 días