2 questions about ClearSilver
"vincent.godey" <[email protected]> Wed, 28 Oct 2009 15:13:59 -0000
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
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 ?
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 ?
Thank
Vincent