diff options
| author | eunhhu <[email protected]> | 2026-09-27 08:24:08 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-27 08:24:08 +0100 |
| commit | 5372d03b5968796515966e2cfc89628d6448f0c1 (patch) | |
| tree | 4ddefd226b2089aafdca06fd981ad3a17a37dbbf /docs | |
| parent | ddff7e15d1d0e90a5f5a52fcc93828c8ef0bbd5c (diff) | |
| download | pure-5372d03b5968796515966e2cfc89628d6448f0c1.tar.gz pure-5372d03b5968796515966e2cfc89628d6448f0c1.zip | |
Look for new sends newest first, only as far back as they go
After each save the owner walked the whole outbox to find the sends
not yet queued, so a receiver long down made every save walk the
backlog. pure_app_outbox_newest visits saved sends newest first, and
the owner stops once every wired output reaches the number it queued
last, then queues what it found in order.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/research/083-delivery-over-http.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/research/083-delivery-over-http.md b/docs/research/083-delivery-over-http.md index 829c666..eedc5f8 100644 --- a/docs/research/083-delivery-over-http.md +++ b/docs/research/083-delivery-over-http.md @@ -90,7 +90,7 @@ Raspberry Pi 5. 받는 서버는 CPU 0–1(연결 스레드 2), 보내는 서버 ## 다음 결정 -- 저장이 끝날 때마다 outbox 전체를 훑어 새 보냄을 찾는다. 받는 쪽이 오래 꺼져 수만 건이 밀리면 저장마다 그만큼 훑는다. - 마지막으로 넣은 자리에서 이어 훑게 해야 한다. +- 저장이 끝날 때마다 outbox를 가장 새것부터 거꾸로 훑어, 배선된 출력마다 이미 줄에 넣은 번호에 닿으면 멈춘다 + (`pure_app_outbox_newest`). 받는 쪽이 오래 꺼져 수만 건이 밀려도 저장마다 새 보냄만큼만 본다. - 덜어 낸 것은 다음 저장에 지워진다. 요청이 없는 앱은 저장하지 않으므로, 다시 시작하면 전한 것을 한 번 더 보낸다(받는 쪽이 걸러 낸다). |
