ilimit umner of simultaneous tunnel build requests per pool

This commit is contained in:
orignal 2022-12-30 18:06:47 -05:00
parent 84d6028454
commit cb139226df
4 changed files with 19 additions and 8 deletions

View file

@ -516,7 +516,7 @@ namespace tunnel
LogPrint (eLogWarning, "Tunnel: Unexpected message type ", (int) typeID);
}
msg = (numMsgs <= MAX_NUM_TUNNEL_MSGS_AT_THE_TIME) ? m_Queue.Get () : nullptr;
msg = (numMsgs <= MAX_TUNNEL_MSGS_BATCH_SIZE) ? m_Queue.Get () : nullptr;
if (msg)
{
prevTunnelID = tunnelID;