Repository navigation
Commit adb6780
fix(server): measure replay payload budget in bytes
SQLite length() on TEXT counts code points, so non-ASCII payloads could
pass the 8 MiB budget at up to four times their byte size. Use
octet_length() and cover a multibyte row in the stats test.
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent d7bb9cb commit adb6780
3 files changed
Lines changed: 13 additions & 4 deletions
File tree
- apps/server/src
- orchestration/Layers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
951 | 956 | | |
952 | 957 | | |
953 | 958 | | |
| 959 | + | |
954 | 960 | | |
955 | 961 | | |
956 | | - | |
| 962 | + | |
957 | 963 | | |
958 | 964 | | |
959 | | - | |
960 | | - | |
| 965 | + | |
| 966 | + | |
961 | 967 | | |
962 | 968 | | |
963 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| |||
0 commit comments