Switched from c++ winsock server to more reliable c# .net socket server. As a result, I needed to tweak the networking code.