Finish and link HTTP socket library with a const request view #790
Reference in New Issue
Block a user
Delete Branch "agent/bittle/http-send-selection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change
NHTTPi_SocSend only reads the request's sslId/cancel fields and never passes the request to a mutating callee. Mark that parameter const in the definition and the caller's forward declaration. Align the definition's buffer parameter with the existing const-void buffer declaration in NHTTP_thread.c. Enable native linking for NHTTP_socket_RVL.
Three changed lines across three files. No body logic, shared header, volatile/register hint, assembly, data, padding, symbol metadata, or compiler-option changes.
Matching evidence
Before: NHTTPi_SocSend 43/43 instructions with three prologue scheduling differences: SSL-id load followed the r31 save/move instead of preceding them. The read-only request view produces the exact target sequence. Conditional-expression and named-temporary variants did not fix it and are not included.
After: NHTTPi_SocSend 43/43, zero differences; whole socket unit 10/10 exact (2,140/2,140 code, no owned data). +172 genuinely matched code bytes/+1 matched function, +2,140 linked code bytes/+1 completed unit.
Verification after rebase on
d494f44516c76aa510b1matches the tested local tree.Draft for review; no merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.