commit | a563a2a3613ad81f575ed80de3641e5410d06ab5 | [log] [tgz] |
---|---|---|
author | Florent Castelli <orphis@webrtc.org> | Mon Oct 18 11:46:21 2021 +0200 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 18 11:24:06 2021 +0000 |
tree | a7c8ed5e21de8c865e307cdeac9c5965a911e895 | |
parent | d91edc224410648377a8aee3db355bf13231ec78 [diff] [blame] |
datachannel: Add a MaxSendQueueSize() accessor in the API Previous limits was only in a comment and users had no way to query it from the API. Bug: webrtc:13289 Change-Id: I6187dd9f9482bc3e457909c5e703ef1553d8ef15 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/235378 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35224}
diff --git a/api/data_channel_interface.cc b/api/data_channel_interface.cc index d299ced..bddb9d1 100644 --- a/api/data_channel_interface.cc +++ b/api/data_channel_interface.cc
@@ -40,4 +40,8 @@ return false; } +uint64_t DataChannelInterface::MaxSendQueueSize() { + return 16 * 1024 * 1024; // 16 MiB +} + } // namespace webrtc