Commit dc5a137
committed
[miniflare] Fix resource leaks during config updates
- Only close/recreate devRegistryDispatcher when the port changes,
matching the existing runtimeDispatcher pattern (fixes #13584)
- Dispose old InspectorProxy instances before replacing them in
updateConnection, preventing leaked WebSockets and keepalive
timers (fixes #13585)1 parent 3355bdc commit dc5a137
File tree
3 files changed
+27
-7
lines changed- .changeset
- packages/miniflare/src
- plugins/core/inspector-proxy
3 files changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| 1110 | + | |
1110 | 1111 | | |
1111 | 1112 | | |
1112 | 1113 | | |
| |||
2422 | 2423 | | |
2423 | 2424 | | |
2424 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
2425 | 2428 | | |
2426 | | - | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
2431 | | - | |
2432 | | - | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
2433 | 2439 | | |
2434 | 2440 | | |
2435 | 2441 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
| |||
0 commit comments