add reconnect mechanism in CoolClient::GetResourceServerSock