POP3 direct-reply interceptor leaves active connection open when stopped
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 22/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- backend, networking
Direzione di ricerca
Start with POP3Helper.stop() and the direct-reply configuration closure that holds the helper, then the @rocket.chat/poplib client it wraps. Check the mocked-client regression test described in the issue, which asserts zero socket-close calls. Pull request #43396 already targets this fix, so review it before writing anything. Done means stop() clears the interval, closes the socket, removes listeners, and drops the reference.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description:
When direct replies use POP3, changing or disabling a Direct_Reply_* setting calls POP3Helper.stop(). That method clears the polling interval but does not close the currently active POP3 connection or detach its listeners.
The stopped helper remains referenced by the direct-reply configuration closure until it is replaced. A settings change can therefore leave the previous POP3 socket/listener graph alive while a new interceptor is created. The old connection may also continue processing after direct reply has been disabled.
Steps to reproduce:
- Configure direct replies to use POP3.
- Start the interceptor while a POP3 connection is active.
- Disable direct replies or change a
Direct_Reply_*setting. - Observe that
POP3Helper.stop()clears the interval, but never invokes any close/end/destroy operation on the active@rocket.chat/poplibclient and never removes its listeners.
A focused regression test using a mocked POP3 client confirms that stop() makes zero socket-close calls. A local TCP integration check also confirms that explicitly destroying the underlying client closes the active connection promptly.
Expected behavior:
Stopping the POP3 direct-reply helper should:
- clear the polling interval;
- close the active POP3 socket;
- remove the active client's listeners and retained reference;
- report itself as inactive.
Actual behavior:
Only the interval is cleared. The active POP3 interceptor, socket, and listeners remain referenced.
Server Setup Information:
- Version of Rocket.Chat Server: current
developat9971f492da - Deployment Method: local source checkout
- Operating System: macOS
- Other fields: not applicable to this code-path reproduction
Client Setup Information
Not applicable.
Additional context
This is a focused code-path and socket-lifecycle reproduction. It is not based on a heap profile or long-running soak test.
No matching existing issue or pull request was found for the POP3 shutdown path.
- Lingua principale
- TypeScript
- Stelle
- 46.5k
- Fork
- 14.1k
- Merge medio
- 1g 21h
- PR unite (30g)
- 381
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la 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 RocketChat/Rocket.Chat
-
Mark the empty state busy while a new search loads, like the table */}Forse già presa @aditya25bcy10173-a11y l’ha presa 2 giorni fa. Apertatodo type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RocketChat/Rocket.Chat#43699 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Timestamp with a time but no timezone shows as 1 January 1970Forse già presa @Sarthak-agrawal-tech l’ha presa 4 giorni fa. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RocketChat/Rocket.Chat#43637 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Move this mapping from useQuery's old `select` into a usePaginatedQuery `combine`Forse già presa @aditya25bcy10173-a11y l’ha presa 3 giorni fa. Apertatodo type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RocketChat/Rocket.Chat#43609 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
evaluate switching to the other tab when the selected tab's permission is revoked mid-sessionForse già presa @schizophrenicmaniac l’ha presa 4 giorni fa. Apertatodo type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
RocketChat/Rocket.Chat#43579 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Docs say packages can be installed with `npm` but use unsupported `patch:` URLForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatype: bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
RocketChat/Rocket.Chat#43554 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/Rocket.Chat
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
langchain-ai/langchainjs#12239 ·
I maintainer di solito rispondono entro 1 giorno
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
paperclipai/paperclip#21837 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
code-yeongyu/senpi#6813 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
lingdojo/kana-dojo#34169 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100