mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
remove constraints of 4-bytes minimum len for connection-id
Summary: New QUIC draft no longer has this limitation for connection-id, and allows connid of len 0 -> 20. This diff removes the constraints. I still kept the requirement for *server-chosen* conn-id Reviewed By: mjoras, lnicco Differential Revision: D19507366 fbshipit-source-id: 4c73f45617f40b29d47d2d86b7598f6c95588d0a
This commit is contained in:
committed by
Facebook Github Bot
parent
e279022ce5
commit
21a7efb2e3
@@ -59,10 +59,10 @@ TEST(ConnectionIdTest, ConnIdSize) {
|
||||
}
|
||||
EXPECT_THROW(ConnectionId{testconnid}, std::runtime_error);
|
||||
testconnid.clear();
|
||||
for (size_t i = 0; i < kMinConnectionIdSize - 1; ++i) {
|
||||
for (size_t i = 0; i < kMinSelfConnectionIdSize - 1; ++i) {
|
||||
testconnid.push_back(0);
|
||||
}
|
||||
EXPECT_THROW(ConnectionId{testconnid}, std::runtime_error);
|
||||
EXPECT_NO_THROW(ConnectionId{testconnid});
|
||||
}
|
||||
|
||||
struct ConnectionIdLengthParams {
|
||||
|
||||
Reference in New Issue
Block a user