Пример #1
0
        internal void InitializeSecondarySocket(Connection connection, IPAddress address, int port)
        {
            connection.ConnectSecondarySocket(address, port);
            InitSecondarySocketCommand command = new InitSecondarySocketCommand(_cache.ClientID);
            DoSendCommand(connection, command, false);
            CommandResponse res = connection.RecieveCommandResponse(connection.SecondaryClientSocket);
            lock (_requestTable.SyncRoot)
            {
                _requestTable.Remove(command.RequestId);
            }

            if (_perfStatsColl2 != null) _perfStatsColl2.DecrementRequestQueueSizeStats();

            if (res != null) res.ParseResponse();
        }