Shutting down adapter
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 43/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- postgresql, typescript
調査の方向性
Start from the adapter shutdown path reached by socketIo.of('/').adapter.close() and socketIo.close(), then inspect the 30s cleanup timer and approximately 2s reconnect timer described in the report. Done means socketIo.close() alone leaves no active timers and the Node.js process exits without the workaround; add or update coverage for shutdown behavior if the repository provides a relevant test entry point.
索引モデルが issue の本文から書いたものです。
説明
I tried shutting down socket IO with the adapter installed. The node js process won't exit, since there are still timers active.
I expect this to work:
socketIo.close();
There are still two timers running afterwards: the 30s cleanup timer and the ~2s reconnect timer
The workaround I found is:
await socketIo.of('/').adapter.close(); // < this will clean the 30s cleanup timer
socketIo.close();
pool.connect = () => new Promise(() => {}); // < this will make the reconnect timer get blocked forever on the first reconnect attempt.
- 主要言語
- TypeScript
- スター
- 27
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
socketio/socket.io-postgres-adapter のほかの issue
-
serverSideEmit(..., callback) does not deliver events until heartbeat is triggered再び着手できるかも @Harjot2022 が 203 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
socketio/socket.io-postgres-adapter#16 · コメント 1 件 ·
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
socketio/socket.io-postgres-adapter#12 · コメント 4 件 ·
socketio/socket.io-postgres-adapter の issue をすべて見る
似ている issue
-
chore v2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelcontextprotocol/servers#5115 ·
メンテナーはふだん 1 日以内に返信
-
beginner bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
philaconvalley/website#168 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
oss-slu/lrda_mobile#294 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hatchet-dev/hatchet#5179 ·
メンテナーはふだん 1 日以内に返信