Hey Kévin, Thanks, could this be documented in the RFC, because from how I read it, it shows the RBEGIN -> REND pairs inside the loop. It does not show the initial RINIT -> REND or final RBEGIN -> RSHUTDOWN transitions. That should be made explicit in the RFC, basically just the lifecycle you wrote about in your email. Another SAPI with worker mode could interpret the RFC as RINIT -> (RBEGIN -> REND) -> RSHUTDOWN. Otherwise, I like that we could have an explicit hook to detect requests handled inside a worker!
Kind regards Florian
