Re: 2 questions about ClearSilver

Brandon Long <[email protected]> Thu, 29 Oct 2009 14:14:41 -0800
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20091029221441.GA1484@bl1>
On 10/28/09 vincent.godey uttered the following other thing:
> Hello,
> 
> ClearSilver doesn't seem to be compatible with HTTP 1.1 persistent
> connections because it don't add Content-Length in the HTTP header of
> the response. To do this, in the cgi.c file, I add
> cgi_wrap_writef("Content-Length: %d\n\r", str.len); before the
> cgi_output call of cgi_display function. It solve may issue, but it
> isn't the best way beacause some cgi option must not more be used
> (CompressionEnabled, TimeFooter and WhiteSpaceStrip) 
> Is this feature (Content-Length is the header of responce) planed for
> a new release ?

I hadn't planned on it, no.  It probably wouldn't be that hard.
 
> Why wrapper is global ? If I call this function for each request, with
> different data each time, it can be a bug issue in case of parallel
> traitement. It may be better if GlobalWrapper will be attached to the
> current cgi ? Is not it ? 

Yes, its was a mistake to make wrapper global.  Changing it is somewhat
troublesome, as it'll break existing things without some effort.
There's also the hooking of the local wrapper to the CGI struct... 

Its definitely doable, but haven't seen a big push for it.

Internally, we don't actually use the cgi wrapper, since we don't use
Apache/CGI, but long running servers with our own http server library.

Brandon
 
> Thank
> 
> Vincent
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
-- 
 "Of all the things I've lost, I miss my mind the most." -- Ozzy Osbourne
                                           http://www.fiction.net/blong/