Hi,
Just for curiosity, in create-static-file-dispatcher-and-handler function, wouldn't it be better if we flush the buffer finally in the loop instead of calling finish-output at every step. Does it have a special objective, e.g., for debugging purposes, portability issues?
And maybe, it'd even be better to use (or to support optionally) force-output instead of finish-output. (With price of not receiving any acknowledgment about the flushed buffer.)
Regards.
On Mon, 16 Apr 2007 21:52:31 +0300, Volkan YAZICI yazicivo@ttnet.net.tr wrote:
Just for curiosity, in create-static-file-dispatcher-and-handler function, wouldn't it be better if we flush the buffer finally in the loop instead of calling finish-output at every step. Does it have a special objective, e.g., for debugging purposes, portability issues?
The way it works now it'll send separate chunks if chunked encoding is used.
And maybe, it'd even be better to use (or to support optionally) force-output instead of finish-output. (With price of not receiving any acknowledgment about the flushed buffer.)
I doubt that using FORCE-OUTPUT really buys you anything except for very rare situations. I'd rather advise the user to write his own version of C-S-F-D-A-H in this case.