Re: [Boa-devel] Dynamic Content
Brought to you by:
jnelson
From: Jon N. <jn...@ja...> - 2003-02-04 18:40:49
|
On Tue, 4 Feb 2003, Allan Wind wrote: > > However the mechanism, it's an unimportant detail really. It's far > > easier IMO that the FastCGI spec which is quite a bit more complex. > > Furthermore, if I read it properly, I don't think the httpd even needs > > to re-parse the output, making SCGI a "smarter" NPH. > > Lost me there. Unless the httpd already parses things as netstrings it > would have to at least generate this special format, no? What about > just passing the whole message through, possible decorated with a header > containing meta information (ip, server root and maybe even an index to > parse the message itself) so you end up doing something like: > > send(header(request)) > send(message) > > where request is assumed to contain meta information. The httpd *still* has to parse all of the headers, and convert it to *something*. Right now, they are simply added to an array (fixed size) of environment variables for the CGI. I wrote a quick proof-of-concept scgi.c file that took that information and converted it. However, if Boa *were* to support more than just CGI, then the logical thing to do is have an intermediate format that is much less expensive, probably a key/value struct, from which either format could be generated inexpensively. -- Democracy is two wolves and a sheep voting on what to have for dinner. Liberty is two wolves attempting to have a sheep for dinner and finding a well-informed, well-armed sheep. Jon Nelson <jn...@ja...> C and Python Code Gardener |