Commit b749f96
committed
fix: Memory leak fixes for IMAP client and webhooks worker
- Clear reconnectTimer in imap-client.js close() and delete() methods
to prevent timer references keeping objects in memory after account removal
- Drain HTTP response body in webhooks.js on error responses to release
connections back to undici connection pool1 parent b001fc9 commit b749f96
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
| 1504 | + | |
1504 | 1505 | | |
1505 | 1506 | | |
1506 | 1507 | | |
| |||
1544 | 1545 | | |
1545 | 1546 | | |
1546 | 1547 | | |
| 1548 | + | |
1547 | 1549 | | |
1548 | 1550 | | |
1549 | 1551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| |||
0 commit comments