mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
use uint32 for max Datagram size
Reviewed By: hanidamlaj Differential Revision: D44080220 fbshipit-source-id: e84c2e3718f7d06fd245770855c8cdc05f49bd86
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d6f02bda04
commit
93096fc8b9
@@ -538,7 +538,10 @@ class TestQuicTransport
|
||||
}
|
||||
|
||||
void enableDatagram() {
|
||||
conn_->datagramState.maxReadFrameSize = 65535;
|
||||
// Note: the RFC says to use 65535 to enable the datagram extension.
|
||||
// We are using +1 in tests to make sure that we avoid representing this
|
||||
// value with an uint16
|
||||
conn_->datagramState.maxReadFrameSize = 65536;
|
||||
conn_->datagramState.maxReadBufferSize = 10;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user