Commit 04034fa
committed
fix: memory leak and CPU starvation in SSDP periodic scan
- We weren't calling `:handled()` on the interval timer, which could put
the SSDP coroutine in to a hot send loop, and this hot RPC activity
was starving the process from being able to handle activity on other
channels
- We were keying in to the wrong table in one location, which was
causing us to retain a bunch of queue'd messages indefinitely, which
would lead to unbounded growth if left running long enough.1 parent 3f04c23 commit 04034fa
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| 302 | + | |
301 | 303 | | |
302 | | - | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
| 307 | + | |
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
| 314 | + | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| |||
0 commit comments