[Haskell-cafe] Re: sendfile leaking descriptors on Linux?

Jeremy Shaw jeremy at n-heptane.com
Tue Feb 9 17:50:49 EST 2010

On Sun, Feb 7, 2010 at 9:22 AM, Bardur Arantsson <spam at scientician.net>wrote:

True, it is perhaps technically not a bug, but it is certainly a misfeature
> since there is no easy way (at least AFAICT) to discover that something bad
> has happened for the file descriptor and act accordingly. AFAICT any
> solution would have to be based on a separate thread which either 1)
> "checks" the FD periodically somehow, or 2) simply lets the thread doing the
> threadWaitWrite time out after a set period of inactivity. Neither is very
> optimal.
> Either way, I'd certainly expect the sendfile library to work around this
> somehow such that this situation doesn't occur. I'm just having a hard time
> thinking up a good solution :).
Well, it is certainly a bug in sendfile that needs to be fixed. I'm not sure
how to fix it either. If we can simplify the test case, we can ask Simon

- jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100209/bdae3f6e/attachment.html

More information about the Haskell-Cafe mailing list