title: Why do my sockets stop transfering?
body: <p>Ok let me be clear. I'm using TCP and that should mean a connection shouldn't interrupt unless closed or due to network problems.</p>
  
  <p>So here's my issue:</p>
  
  <p><strong>Utilizing my sockets works perfectly.</strong></p>
  
  <p>After 5 - 10 min of innactivity they stop responding (the connection is still alive [checked with netstat -n]).</p>
  
  <p>It tells me that data is send (but the other side doesn't receive it and I'm sure it waiting for it.)</p>
  
  <p>If I keep sending, eventually it will give me WSA error 10038 (invalid socket handle).</p>
  
  <p><strong>EDIT after a few more tries of sending, it gave me error 10058 (An established connection was aborted by the software in your host machine. )</strong></p>
  
  <p>I'm confused completely. I haven't closed the socket nor done anything to it other than inactivity. If I use it nonstop for 10 - 20 minutes, it works perfectly.</p>