diff options
author | 2022-09-29 13:25:26 +0200 | |
---|---|---|
committer | 2022-09-29 13:15:22 +0000 | |
commit | 7fd052761d21bfa38839a27cc9d03ef77a01f411 (patch) | |
tree | 68eed1c3415bf520d9fa128a96d1bbcdb3950b5c /libtransport/src/protocols | |
parent | fbcfff380dfedac7e7e464e90ecbefd51a78b217 (diff) |
fix(rtc-production-protocol): do not modify packet just after sending it
Also:
- Fix consumer-producer unit test
- Enable communication of local socket using forwarder io-module
Ticket: HICN-799
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ib245fce6d6f409255d4e91e5745a6919acb3e720
Diffstat (limited to 'libtransport/src/protocols')
-rw-r--r-- | libtransport/src/protocols/prod_protocol_rtc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/protocols/prod_protocol_rtc.cc b/libtransport/src/protocols/prod_protocol_rtc.cc index 3d1562801..aebad23d6 100644 --- a/libtransport/src/protocols/prod_protocol_rtc.cc +++ b/libtransport/src/protocols/prod_protocol_rtc.cc @@ -699,8 +699,6 @@ void RTCProductionProtocol::sendContentObject( signer_->signPacket(content_object.get()); } - portal_->sendContentObject(*content_object); - // Compute and save data packet digest if (manifest_max_capacity_ && !is_ah) { auth::CryptoHashType hash_algo; @@ -709,6 +707,8 @@ void RTCProductionProtocol::sendContentObject( manifest_entries_.push({content_object->getName().getSuffix(), content_object->computeDigest(hash_algo)}); } + + portal_->sendContentObject(*content_object); } void RTCProductionProtocol::onFecPackets(fec::BufferArray &packets) { |