mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
Count the CID currently in use for ID limit purposes
This commit is contained in:
committed by
Dirkjan Ochtman
parent
457e11141d
commit
52623c7dfc
@@ -1924,7 +1924,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
if self.rem_cids.len() as u64 == REM_CID_COUNT {
|
||||
// Number of active connection IDs is the number saved + the one in use
|
||||
if self.rem_cids.len() as u64 + 1 == REM_CID_COUNT {
|
||||
return Err(TransportError::CONNECTION_ID_LIMIT_ERROR(""));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user