From 7fd052761d21bfa38839a27cc9d03ef77a01f411 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 29 Sep 2022 13:25:26 +0200 Subject: 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 Change-Id: Ib245fce6d6f409255d4e91e5745a6919acb3e720 --- libtransport/src/protocols/prod_protocol_rtc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtransport/src/protocols') 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) { -- cgit 1.2.3-korg