[Haskell-cafe] Re: sendfile leaking descriptors on Linux?
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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe