title: Linux application doesn't ACK the FIN packet and retransmission occurs
body: <p>I have a server running on linux(kernel 3.0.35) and a client running on Windows 7. Every time the client connects to the server a TCP retransmission occurs:
  Here is the traffic from wireshark:
  <a href="http://oi39.tinypic.com/ngsnyb.jpg" rel="nofollow">http://oi39.tinypic.com/ngsnyb.jpg</a></p>
  
  <p>What I think happens is this:</p>
  
  <p>The client(192.168.1.100) connects to the server(192.168.1.103), the connection is successful. At some point the client decides to close the connection( FIN,ACK), the server doesn't ACK the FIN.
  Then the client starts a new connection, that connection is ACK, and is successful. In the meantime the Windows kernel continues to retransmit the FIN,ACK packet, and finally decides to do a reset.</p>
  
  <p>At the moment the second connection is established I don't receive the data that the client is sending(the packet with 16 bytes length) at server side, I receive these bytes only after the RST packet. </p>
  
  <p>On the server side I'm using the poll() function to check for POLLIN events, and I'm not notified of any data until the RST packet arrives.</p>
  
  <p>So does anyone know why this situation is happening?</p>