Commit caf5972
fix(scheduler): add 32KiB coalescing body size limit
Without a body-size bound, a burst of large messages from the same
sender within the coalesce window would concatenate without limit,
potentially causing large memory allocations. Add MAX_COALESCED_BODY_SIZE
(32 KiB) check that flushes the current group when exceeded.
Cherry-picked from PR #412.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 40ee244 commit caf5972
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
0 commit comments