diff --git a/README.md b/README.md index eab5c20..6ae2662 100644 --- a/README.md +++ b/README.md @@ -58,5 +58,6 @@ libs/webrtc/doc` builds it into `doc/html/index.html`. Distributed under the [Boost Software License, Version 1.0](LICENSE_1_0.txt). Natively webrtc uses libdatachannel, under the Mozilla Public License 2.0, -with the superproject's patches of `tools/libdatachannel/patches` (under the -MPL too), and its nested dependencies under their own licences. +with the superproject's patches of `tools/libdatachannel/patches` (each under +the licence of the files it changes), and its nested dependencies under their +own licences. diff --git a/doc/native.adoc b/doc/native.adoc index 367d2e5..b2d49d2 100644 --- a/doc/native.adoc +++ b/doc/native.adoc @@ -20,15 +20,18 @@ files: the superproject pins it at commit `6b1e2e6`, with its nested sources at the commits `tools/libdatachannel/pin.json` lists, and builds it from them (<>), with the corrections of `tools/libdatachannel/patches` applied to the build's copy: two races of 0.24.6 that failed a connection -whose DTLS or SCTP transport started while the answer was being applied. +whose DTLS or SCTP transport started while the answer was being applied, and +two defects, of its SCTP cleanup and of the usrsctp it pins, that hung a +process making a second <> once the first was gone. Nothing of it appears in a public header: a program never names libdatachannel. libdatachannel is distributed under the Mozilla Public License 2.0, and its nested dependencies under their own licences, which the superproject's third-party table lists. MPL's copyleft is per file: while libdatachannel is -changed only by those patches, themselves under the MPL, it reaches none of -webcpp's own files, which are under the Boost Software License alone. A +changed only by those patches, each under the licence of the files it changes +(the MPL, or usrsctp's BSD 3-Clause), it reaches none of webcpp's own files, +which are under the Boost Software License alone. A program that distributes a native build of webrtc distributes libdatachannel with it, and keeps its licence and notices. diff --git a/test/native_test.cpp b/test/native_test.cpp index a8041bf..50f8e0f 100644 --- a/test/native_test.cpp +++ b/test/native_test.cpp @@ -78,11 +78,11 @@ class full_exchange { BOOST_TEST((received_b_ == received{{4, false}, {2, true}})); BOOST_TEST((received_a_ == received{{4, true}})); BOOST_TEST_EQ(at_b_.size(), 6u); - BOOST_TEST(at_b_.substr(4) == "ab"); + BOOST_TEST(at_b_.size() >= 4 && at_b_.substr(4) == "ab"); BOOST_TEST(at_a_ == "pong"); BOOST_TEST(closed_a_); BOOST_TEST(closed_b_); - BOOST_TEST(cb_.value().ready_state() == webrtc::data_channel_state::closed); + BOOST_TEST(cb_ && cb_->ready_state() == webrtc::data_channel_state::closed); const auto local = p_.a->local_description(); BOOST_TEST(local && local->type == webrtc::sdp_type::offer); BOOST_TEST(local && local->sdp.find("a=candidate") != std::string::npos); @@ -454,7 +454,7 @@ void a_channel_closed_by_its_owner() { p.run(); BOOST_TEST(receive && *receive == asio::error::operation_aborted); BOOST_TEST(close_wait && !*close_wait); - BOOST_TEST(ca->ready_state() == webrtc::data_channel_state::closed); + BOOST_TEST(ca && ca->ready_state() == webrtc::data_channel_state::closed); } // Destruction with a wait pending runs its handler once, with operation_aborted; a move carries