Solved error caused by socket.MSG_WAITALL in windows