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

Bardur Arantsson spam at scientician.net
Tue Feb 16 16:18:22 EST 2010


Bardur Arantsson wrote:
> Jeremy Shaw wrote:
[--snip--]
> Re: a test case, you'll probably need to run the test case code on a 
> client whose OS allows (from userspace) the sudden dropping of 
> connections without sending a proper connection shutdown sequence. I'm 
> not sure that that OS would be.

Actually, scratch that. Maybe it's just a question having a high enough 
connection rate to hit the case where threadWaitWrite "hangs". Although 
I did try a few times using wget, I didn't really try hammering the 
server properly. It probably needs the right timing to trigger the 
problem (i.e. the disconnect needs to happen exactly when sendfile is 
done with its block and we're going around to threadWaitWrite again.)

I'll see if I get the time try a test client which can really hammer my 
server -- that ought to be able to trigger the problem. If that works, 
I'll try to produce a minimal server program which still exhibits the issue.

Cheers,



More information about the Haskell-Cafe mailing list