From: Edi W. <ed...@ag...> - 2003-01-02 22:59:36
|
"John K. Hinsdale" <hi...@al...> writes: > >> also w/ the mod_lisp approach I can't use it as a drop-in > >> replacement for my scripts that write the response to the STDOUT > >> stream as per CGI. > > > (let ((html (with-output-to-string (*standard-output*) > > (my-old-script)))) > > (send-data-to-mod-lisp html)) > > > Wouldn't that work? > > well, almost ... except that it's not always allowed in my case to > collect up the entire output before beginning to send back to the Web > client. (I have some pages that need to begin producing displayed > output before the request is completely processed Hmm, that also rules out using mod_lisp's "Keep-Socket" feature which is one of its highlights. You _must_ send a correct Content-Length header before you send the body - kind of like HTTP/1.1 Keep-alive. Cheers, Edi. |