You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/tasks/M7-v2-cleanup/TASK-063.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@
8
8
`pipe(int fd, std::size_t size_hint = 0)` exposes `size_hint` in the public API but the dispatch path ignores it; a test (`test/unit/http_response_factories_test.cpp:253-266`) pins "accepted-but-ignored" as the contract. Decide whether to honor the hint (sizing the streaming buffer, `Content-Length` synthesis, or kernel hint via `posix_fadvise`) or remove it from the signature.
9
9
10
10
**Action Items:**
11
-
-[] Decide one of: (a) honor `size_hint` as the streaming chunk size and/or `Content-Length`, or (b) remove the parameter and the pinning test.
11
+
-[x] Decide one of: (a) honor `size_hint` as the streaming chunk size and/or `Content-Length`, or (b) remove the parameter and the pinning test. — chose (b); rationale recorded in `.groundwork-plans/TASK-063-plan.md` (no `PRD-RSP-REQ` for streaming-size; MHD's `MHD_create_response_from_pipe` takes no size; `Content-Length` synthesis would lie).
12
12
-[ ] If (a): wire `size_hint` into `detail::body_pipe` (or wherever the pipe body is materialised) and add a `Content-Length` header when the hint is nonzero and finite. Add a real integration test that pins the byte-count emitted on the wire matches the hint when the underlying fd produces exactly that many bytes.
13
-
-[] If (b): drop `size_hint` from the public `pipe(int fd)` signature in `src/httpserver/http_response.hpp:159-161`, drop the corresponding default-arg in `src/http_response.cpp:409`, and convert the "accepted-but-ignored" test in `test/unit/http_response_factories_test.cpp:253-266` into a compile-fail or call-site update.
14
-
-[] Update RELEASE_NOTES.md "Migration notes" if the signature changed (binary/source incompatibility).
13
+
-[x] If (b): drop `size_hint` from the public `pipe(int fd)` signature in `src/httpserver/http_response.hpp:159-161`, drop the corresponding default-arg in `src/http_response.cpp:409`, and convert the "accepted-but-ignored" test in `test/unit/http_response_factories_test.cpp:253-266` into a compile-fail or call-site update.
14
+
-[x] Update RELEASE_NOTES.md "Migration notes" if the signature changed (binary/source incompatibility).
15
15
16
16
**Dependencies:**
17
17
- Blocked by: None
@@ -26,4 +26,4 @@
26
26
**Related Requirements:** PRD-RSP-REQ-001 (factory by value), PRD §2 API minimalism
0 commit comments