[tbnl-devel] leaked file handles when not (plusp content-length)

Edi Weitz edi at agharta.de
Thu Dec 8 15:58:23 UTC 2005


Hi Tim!

On Thu, 08 Dec 2005 14:55:41 +0100, "Tim Daly Jr." <tim at tenkan.org> wrote:

> I would like to report a bug, which I encountered in TBNL 0.8.2.
> I've been meaning to work up a patch, but I haven't had the time
> yet.  I don't even have the time to check if the bug is present in
> 0.8.8.  :/ So, please forgive me for merely reporting what I saw,
> for now.
>
> I'm using SBCL 0.9.6, but I suspect that the bug isn't a grotty
> implementation-specific issue.
>
> Basically, when you return the empty string as a response, after
> about 250 responses, you run out of file handles and everything
> stops working.  To get around it, you can return a string with
> something in it, or you can do something wonderful like this, around
> line 123 in modlisp.lisp:
>
>         (when (or t (plusp content-length)) ;xxx timjr

I can't reproduce this.  I wrote a simple example which always returns
the empty string and tested with both LispWorks and CMUCL on Linux
(behind Apache).  In both cases I fired a couple of thousand requests
against the server (using ApacheBench) without any problems.

Are you using the current version of mod_lisp?

  <http://www.fractalconcept.com:8000/public/open-source/mod_lisp/>

If you still can see the bug with TBNL 0.8.8 and current mod_lisp
please let me know.

Thanks,
Edi.



More information about the Tbnl-devel mailing list