Commit 84c19e2
committed
mirror_worker: discard trailing add-entries bytes instead of 400
The spec says the mirror discards any partial bytes after the last
successfully authenticated entry package; the only defined 400 is when no
package was authenticated at all. The trailing-byte 400 also ran after
persist_entries and advance_next_entry had already committed and advanced
the frontier, so it told the client nothing was saved when everything
was, with no next_entry to resume from. Drop the check. Addresses bonk
#264 review on add_entries.rs trailing-data handling.1 parent 76a297a commit 84c19e2
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
| |||
0 commit comments