private void ProcessAckPacket(StandardAckPacket packet)
{
try
{
TcpConnectionHolder conn = _tcpConnections.GetRemoteConnection(packet.ConnectionId);
// Lock sending while we process this packet (we will still be able to receive)
// Now TcpConnection doesn't have to be threadsafe, but each connection
// can process acks independently at full speed.
lock (conn.SendLock)
{
// now process the ackPacket;
conn.Connection.ProcessAck(packet);
}
}
catch (ConnectionException e)
{
Logger.Error("Dropping ack packet [" + packet + "], failed to get a connection : " + e.Message);
}
}