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

Donn Cave donn at avvanta.com
Tue Feb 23 23:47:41 EST 2010

Quoth "Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu>,
> On Feb 21, 2010, at 20:17 , Jeremy Shaw wrote:
>> The PS3 does do something though. If we were doing a write *and*  
>> read select on the socket, the read select would wakeup. So, it is  
>> trying to notify us that something has happened, but we are not  
>> seeing it because we are only looking at the write select().
> Earlier the OP claimed this would happen within a few minutes if he  
> seeked in a movie.  If it's that reproducible, it should be easy to  
> capture a tcpdump and attach it to an email (or pastebin it), allowing  
> us to determine what really happens.
> Also, Donn, you are incorrect about invalidating premises; we know the  
> connection is going away, we can infer it's not going away normally,  
> that's why there have been comments about it sending a FIN and  
> dropping the connection entirely (bypassing the shutdown handshake),  
> or sending an RST, etc.

That's what I'm saying - it clearly is not a full close, i.e., going
away normally per protocol.

With luck maybe the packets will show that something does happen at
a wire protocol level, and there will be a way to recognize the event
at the `user land' level and plug that into the event loop.

My prediction is that on the contrary, the transition between functional
and defunct will not be not announced in any way by the peer, but that's
just guessing.  It would be a lot less interesting.


More information about the Haskell-Cafe mailing list