[Bese-devel] File upload with mod-lisp
henrik hjelte
henrik at evahjelte.com
Wed Feb 8 07:35:00 UTC 2006
On sön, 2006-02-05 at 19:12 +0200, Aycan iRiCAN wrote:
> I'm having this error when I try to upload a file.
>
> 2006-02-05T18:29.16 +ERROR+ UCW.BACKEND: Worker thread #<HTTPD-WORKER {9487459}> reported #<SB-INT:STREAM-DECODING-ERROR {96B3509}>.
>
> This happens when read-request in mod-lisp.lisp tries to read-sequence
> From network-stream.
>
> (awhen (get-header request "Content-Length")
> (let ((content-length (parse-integer it :junk-allowed t)))
> (when content-length
> (setf raw-body (make-array content-length :element-type 'character))
> (read-sequence raw-body network-stream))))
>
> Is there an unpublished fix for this problem?
The latest version of mod-lisp didn't work at all for me
on linux+x86 sbcl due because read-line and write-line wouldn't
write to a stream of type (unsigned-byte 8). Maybe something is in the
works that fixes this, in the meanwhile I have made a patch to the
ucw_public branch that solves this problem.
/Henrik Hjelte
More information about the bese-devel
mailing list