POP3 direct-reply interceptor leaves active connection open when stopped
Los mantenedores suelen responder en 1 día
@Shreyas2004wagh ya está trabajando en esto.
Desde el 1/11/2026.
- #43396 de @Shreyas2004wagh — abierto
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- backend, networking
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 46.5k
- Forks
- 14.1k
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 381
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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/Rocket.Chat
-
Mark the empty state busy while a new search loads, like the table */}Posiblemente ocupada @aditya25bcy10173-a11y la tomó hace 2 días. Abiertotodo type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RocketChat/Rocket.Chat#43699 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Timestamp with a time but no timezone shows as 1 January 1970Posiblemente ocupada @Sarthak-agrawal-tech la tomó hace 4 días. Abiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/Rocket.Chat#43637 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
Move this mapping from useQuery's old `select` into a usePaginatedQuery `combine`Posiblemente ocupada @aditya25bcy10173-a11y la tomó hace 3 días. Abiertotodo type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/Rocket.Chat#43609 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
evaluate switching to the other tab when the selected tab's permission is revoked mid-sessionPosiblemente ocupada @schizophrenicmaniac la tomó hace 4 días. Abiertotodo type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
RocketChat/Rocket.Chat#43579 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Docs say packages can be installed with `npm` but use unsupported `patch:` URLPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertotype: bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/Rocket.Chat#43554 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/Rocket.Chat
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