Fix winsock ECONNRESET problem

Reference:
* http://support2.microsoft.com/kb/263823/en-us