Delivery runs: many logins can still delay others' webhooks, and gaps can count 2 for one subscription

Abierto
#72 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@ThomasK33 ya está trabajando en esto.

Desde el 19/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Two notes from the verifiers of #67 and #71 are still open. Neither is new: both were already there before #67.

Many logins can still delay other logins' webhooks

A /cron/deliver run has 25 s, but it starts reads only while 20 s are left, so all reads share about 5 s. Each login gets 1 s of that (scanTimeout), and ScanTargets serves the subscriptions furthest behind first. Five or more logins that each add one subscription per run with cursor: "v1.0" (a replay of the whole history) take the whole 5 s. Other logins' subscriptions then wait. The verifier of #67 saw a healthy login go unserved in 8 of 8 runs with five such logins; base behaves the same. Four logins delayed it by one run in 2 of 5 tries.

Possible fixes: order ScanTargets round-robin by principal instead of by scanned_through alone, or cap how many replay subscriptions a login may open per run.

gaps can count 2 for one subscription in one run

If a purge raises the purge mark above a subscription's read position after that read crossed the old mark, the same run can raise a second gap for it. DeliverResult.Gaps (the gaps field of /cron/deliver) then counts 2 for one subscription. Only one gap envelope is sent. Found by reading enqueueWindow in faucet/deliver.go, not tested live.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lenguaje dominante
Go
Estrellas
1
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coder/faucet

Todos los issues de coder/faucet

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.