Re: [Cgi-devel] is a request available after a commit?
Status: Beta
Brought to you by:
drrngrvy
From: Darren G. <lis...@go...> - 2010-06-17 08:54:07
|
On 17 June 2010 02:30, <jc...@ol...> wrote: > Hello, > > I often need to do additional stuff once the response to send back to the > client is ready. Instead of waiting for the additional stuff to be done, I > thought that I could just commit and then do my additional stuff. > I am wondering if the request data are still available and if this is a > good design. > Yes this is a perfectly valid use-case. The request is explicitly closed by commit() and this means you can't read / write any more data but all of the request information is still available until you either: a) call request::clear() b) accept a new request on a closed request (which internally calls request::clear()) I've added documenting this to my TODO. Cheers, Darren |