title: C++ TCP based Server socket takes time to return 10054 error. Its doesn't return immediately
body: <p>I have linux based TCP client  written in C and Server written in c++ and deployed on Windows machine.  </p>
  
  <ol>
  <li>From Server, I am sending 1 byte of data every 5 seconds.</li>
  <li>Client receives it.</li>
  <li>After disconnecting internet on client when I look at the log of Server it takes a <strong>lot of time to return error 10054 on Server</strong> on send.</li>
  <li>Its a multi socket and multithread based windows service.</li>
  </ol>
  
  <p>what should I do to get error immediately ??</p>