[hunchentoot-devel] Truncated responses from Hunchentoot

Hans Hübner hans.huebner at gmail.com
Sat Feb 5 07:47:34 UTC 2011


Hi Ilya,

thank you for the bug report.

On Sat, Feb 5, 2011 at 1:20 AM, Ilya Perminov <iperminov at dwavesys.com> wrote:
> I use Hunchentoot 1.1.1 with SBCL 1.0.43 under Linux. Under load
> Hunchentoot sometimes sends incomplete responses to the clients. I tried
> to debug the problem and Hunchentoot seems to close the output
> stream without waiting for the buffered data to be sent.
> In "connection per request" mode (i.e. keep-alive is disabled),
> immediately after writing a response to the output stream
> function PROCESS-CONNECTION makes the following calls:
> (force-output *hunchentoot-stream*)
> (close *hunchentoot-stream* :abort t)

I think that the right fix is to call FINISH-OUTPUT in
PROCESS-CONNECTION instead.  I have committed
http://bknr.net/trac/changeset/4641, can you please try that patch and
let us know if it helps?

Thanks,
Hans




More information about the Tbnl-devel mailing list