Shutting down adapter
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 43/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- postgresql, typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 28
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di socketio/socket.io-postgres-adapter
-
serverSideEmit(..., callback) does not deliver events until heartbeat is triggeredForse di nuovo libera @Harjot2022 l’ha presa 205 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
socketio/socket.io-postgres-adapter#16 · 1 commento ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
socketio/socket.io-postgres-adapter#12 · 4 commenti ·
Tutte le issue di socketio/socket.io-postgres-adapter
Issue simili
-
affected/v17 affected/v18 area/frontend type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
umbraco/Umbraco-CMS#24186 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
better-auth/better-auth#11723 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
area: docs difficulty: easy documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden abForse già presa @KajoVanBuyten l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
AgentSystemLabs/agent-office#367 ·
I maintainer di solito rispondono entro 1 giorno