[web-devel] Hoogle Advice

Jeremy Shaw jeremy at n-heptane.com
Tue Jan 25 21:53:10 CET 2011


On Jan 25, 2011, at 1:18 PM, Bardur Arantsson wrote:

> On 2011-01-25 18:35, Jeremy Shaw wrote:
>>
>> On Jan 25, 2011, at 1:33 AM, Bardur Arantsson wrote:
>>>
>> I think there are a lot of things you might want from a slightly  
>> higher
>> level framework like happstack-server. Note that you can install
>> happstack-server with out happstack-state or any of the templating
>> libraries.
>
> Possibly. However, I'm not really sure it's worth the extra  
> dependency.
>
> Btw, I actually tried to convert my Hums project to Happstack. There  
> was some crucial problem which I was not able to overcome. I think  
> it *might* have had something to do with not wanting to use Sendfile  
> (the old thread/FD leak problem) and not finding another way to do  
> the same thing without using Lazy I/O (which I *definitely* don't  
> want for transferring huge files to a crappy HTTP client). I'm not  
> entirely sure that was what the problem was, but if it sounds  
> plausible, then there might be a feature request lurking there :).

SendFile should not leak file handles. I have run millions of sendfile  
requests through happstack (in darcs) with no signs of FD/thread  
leakage.

There were fd leaks problems with the lazy IO file serving code. That  
is one of the reasons we switched to sendfile :p

- jeremy



More information about the web-devel mailing list