[web-devel] simple-sendfile v0.2.4
jeremy at n-heptane.com
Mon Jun 25 04:10:44 CEST 2012
Ah I see now. Thanks! I will look at switching Happstack 8 to use
simple-sendfile. I have never liked the sendfile library much, and
would glad to be done with it forever.
 I am not the original author.
On Sun, Jun 24, 2012 at 8:58 PM, Kazu Yamamoto <kazu at iij.ad.jp> wrote:
>> How do you handle timeouts? If you use sendfile to send a large file
>> (such as a video download) and it takes longer than the warp timeout
>> period (30 seconds or something), won't warp kill the connection
>> thinking that the connection has hung and no progress is being made?
>> Or am I missing something?
> Haskell network library opens a socket with the non-blocking flag
> set. So, the sendfile syscall returns if there is not enough write
> buffer. The sendfile function in simple-sendfile takes an IO function
> which is called when the sendfile syscall returns. Warp resets
> timeout via the IO function.
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel