Count the CID currently in use for ID limit purposes

This commit is contained in:
Benjamin Saunders
2020-03-09 19:33:42 -07:00
committed by Dirkjan Ochtman
parent 457e11141d
commit 52623c7dfc
+2 -1
View File
@@ -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(""));
}