Compare commits

...

3 Commits

2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.7)
project(libdatachannel
VERSION 0.11.5
VERSION 0.11.6
LANGUAGES CXX)
set(PROJECT_DESCRIPTION "WebRTC Data Channels Library")

View File

@ -114,7 +114,7 @@ bool Track::isOpen(void) const {
bool Track::isClosed(void) const { return mIsClosed; }
size_t Track::maxMessageSize() const {
return 65535 - 12 - 4; // SRTP/UDP
return DEFAULT_IPV4_MTU - 12 - 8 - 20; // SRTP/UDP/IPv4
}
size_t Track::availableAmount() const { return mRecvQueue.amount(); }
@ -158,7 +158,7 @@ void Track::incoming(message_ptr message) {
}
bool Track::outgoing([[maybe_unused]] message_ptr message) {
#if RTC_ENABLfiE_MEDIA
#if RTC_ENABLE_MEDIA
std::shared_ptr<DtlsSrtpTransport> transport;
{
std::shared_lock lock(mMutex);