[hunchentoot-devel] Publishing stream data?
Edi Weitz
edi at agharta.de
Sat Sep 29 14:50:35 UTC 2007
On Fri, 28 Sep 2007 09:40:15 -0700, "Ram Krishnan" <rkris at kriyative.net> wrote:
> The STREAM returned by SEND-HEADERS can be bound using
> WITH-OPEN-STREAM and written to using standard Common Lisp I/O
> functions, e.g.,
>
> (with-open-stream (out (hunchentoot:send-headers))
> (write-sequence (make-array pad-len
> :element-type '(unsigned-byte 8)
> :initial-element 0)
> out))
You shouldn't use WITH-OPEN-STREAM here as that will unconditionally
close the stream. Hunchentoot must be able to decide whether the
stream should be closed or not.
More information about the Tbnl-devel
mailing list