mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-09 10:00:57 +03:00
make datagram read and write buf limits configurable
Summary: make datagram read/write bufs configurable via transport settings Reviewed By: mjoras Differential Revision: D31562545 fbshipit-source-id: c80c54f1ca412b464d08dd05c7580511f9b6fafc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
022960f938
commit
fbae03019c
@@ -3012,6 +3012,10 @@ void QuicTransportBase::setTransportSettings(
|
||||
setCongestionControl(conn_->transportSettings.defaultCongestionController);
|
||||
if (conn_->transportSettings.datagramConfig.enabled) {
|
||||
conn_->datagramState.maxReadFrameSize = kMaxDatagramFrameSize;
|
||||
conn_->datagramState.maxReadBufferSize =
|
||||
conn_->transportSettings.datagramConfig.readBufSize;
|
||||
conn_->datagramState.maxWriteBufferSize =
|
||||
conn_->transportSettings.datagramConfig.writeBufSize;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user