Add request timeouts to federation HTTP calls
@debdutdeb がすでに取り組んでいます。
2025年9月16日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- TypeScript
- スター
- 17
- フォーク
- 18
- 平均マージ
- 2時間 11分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/homeserver のほかの issue
-
pruneEventDict and signEvent's `prune` flag should go away entirely, replaced by再び着手できるかも @sampaiodiego が 76 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad: type: feature
RocketChat/homeserver#411 · コメント 1 件 · 担当者 1 名 ·
-
Include banned and invited servers in event destination set対応中かも @ggazzo が 233 日前に担当しました。 オープンtype: bug
難易度 4/5 3〜5日 初心者へのやさしさ 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.再び着手できるかも @sampaiodiego が 249 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad: type: feature
RocketChat/homeserver#342 · コメント 4 件 · 担当者 1 名 ·
-
this may not be the best place to do this validation再び着手できるかも @sampaiodiego が 327 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad:
RocketChat/homeserver#322 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
-
check if all sendEventToAllServersInRoom should be followed by an emitter再び着手できるかも @ggazzo が 359 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtodo :spiral_notepad:
RocketChat/homeserver#304 · 担当者 1 名 ·
RocketChat/homeserver の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/langchainjs#12239 ·
メンテナーはふだん 1 日以内に返信
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
paperclipai/paperclip#21837 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
code-yeongyu/senpi#6813 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
lingdojo/kana-dojo#34169 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100