title: winsock select based server
body: <p>I need an example of select based server, which receives and sends data from/to a client.
  I prefer MSDN example but I could not find any on MSDN.</p>
  
  <p>There is a good one here;
  <a href="http://tangentsoft.net/wskfaq/examples/basics/select-server.html" rel="nofollow noreferrer">http://tangentsoft.net/wskfaq/examples/basics/select-server.html</a></p>
  
  <p>But my implementation is almost same, except for, I did not set ExceptFDs, it is null. I set select function's timeout to 250 ms.</p>
  
  <p>And when one client is connected and server is sending data to client, there is no problem. It is working for weeks without problem.
  But when client also sends data server, after appr. 5 hours,at the line of select function STATUS_STACK_OVERFLOW exception occurs.</p>
  
  <p>I am really stuck. I will be appreciated for any advice.
  Many Thanks</p>