Add request timeouts to federation HTTP calls
@debdutdeb ya está trabajando en esto.
Desde el 16/9/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description
Federation HTTP requests in FederationRequestService.makeSignedRequest() currently lack timeout handling, which can cause requests to hang indefinitely on network issues.
Context
The @hs/core fetch implementation doesn't include built-in timeout support. This was identified during review of PR #191.
Proposed Solution
Add configurable timeout support using one of these approaches:
- Use AbortController with setTimeout to cancel long-running requests
- Extend
@hs/corefetch to accepttimeoutMsorsignalparameters - Add a configurable timeout (e.g.,
FEDERATION_REQUEST_TIMEOUT_MS) with reasonable default (~15s)
Files Affected
packages/federation-sdk/src/services/federation-request.service.ts- Potentially
@hs/corefetch implementation
References
- Original PR: https://github.com/RocketChat/homeserver/pull/191
- Comment: https://github.com/RocketChat/homeserver/pull/191#discussion_r2351945893
/cc @debdutdeb
- Lenguaje dominante
- TypeScript
- Estrellas
- 17
- Forks
- 18
- Merge medio
- 2 h 11 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin 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 RocketChat/homeserver
-
pruneEventDict and signEvent's `prune` flag should go away entirely, replaced byQuizá libre de nuevo @sampaiodiego la tomó hace 76 días y no hay ningún pull request abierto. Abiertotodo :spiral_notepad: type: feature
RocketChat/homeserver#411 · 1 comentario · 1 asignado ·
-
Include banned and invited servers in event destination setPosiblemente ocupada @ggazzo la tomó hace 233 días. Abiertotype: bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
RocketChat/homeserver#388 ·
-
we need a map of rooms and destinations to avoid having to get rooms state just to send an event to all servers in the room.Quizá libre de nuevo @sampaiodiego la tomó hace 249 días y no hay ningún pull request abierto. Abiertotodo :spiral_notepad: type: feature
RocketChat/homeserver#342 · 4 comentarios · 1 asignado ·
-
this may not be the best place to do this validationQuizá libre de nuevo @sampaiodiego la tomó hace 327 días y no hay ningún pull request abierto. Abiertotodo :spiral_notepad:
RocketChat/homeserver#322 · 1 comentario · 1 reacción · 1 asignado ·
-
check if all sendEventToAllServersInRoom should be followed by an emitterQuizá libre de nuevo @ggazzo la tomó hace 359 días y no hay ningún pull request abierto. Abiertotodo :spiral_notepad:
RocketChat/homeserver#304 · 1 asignado ·
Todos los issues de RocketChat/homeserver
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
langchain-ai/langchainjs#12239 ·
Los mantenedores suelen responder en 1 día
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
paperclipai/paperclip#21837 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
code-yeongyu/senpi#6813 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
lingdojo/kana-dojo#34169 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100