Expand description
Request lifecycle helpers.
Request handling splits into two layers: request-side data manipulation (which fragments are done, which are in error, what error to send) and connection-side plumbing (timeout queues, recv/send done callbacks, peer forwarding).
This module owns the data-side helpers; the connection-side helpers land in Stage 9 once the connection FSM exists.
Functionsยง
- is_done
- True when the request has been resolved end-to-end: a response has been selected, all fragments are accounted for, and (for fragment vectors) the parent fragment has finished aggregating.
- is_
error - True when the request is in error: either marked directly or flagged through fragment-error propagation.
- move_
completed - Drain
fromof every request whoseselected_rspmatchesidand forward them toto. - set_
error - Mark
reqas in-error witherror_code(a libc errno-shaped value) and the matchingdyn_error_code. The flag is set so the response path can synthesise an error reply on the next pass.