diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-07-08 15:00:58 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-07-08 16:45:04 +0200 |
commit | 63422dfdcb1cd6827e76440cc147c9eac415952a (patch) | |
tree | aeafaffb0e1f7a68c823611609e21983f51f5d0e /libtransport/src/hicn/transport/http/server_publisher.cc | |
parent | 87cd4b4d22a08f1b56cd067770a29bcb05ebb845 (diff) |
[HICN-242] Perform only one allocation for the whole buffer passed to produce()
Change-Id: Ib4628d0a7711e2d7175b3dbb5c152dd22616ff32
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/http/server_publisher.cc')
-rw-r--r-- | libtransport/src/hicn/transport/http/server_publisher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/http/server_publisher.cc b/libtransport/src/hicn/transport/http/server_publisher.cc index 6a4bb9c48..b4deb5333 100644 --- a/libtransport/src/hicn/transport/http/server_publisher.cc +++ b/libtransport/src/hicn/transport/http/server_publisher.cc @@ -21,7 +21,7 @@ namespace transport { namespace http { HTTPServerPublisher::HTTPServerPublisher(const core::Name &content_name) - : content_name_(content_name, true) { + : content_name_(content_name) { std::string identity = "acceptor_producer"; producer_ = std::make_unique<ProducerSocket>(); // utils::Identity::generateIdentity(identity)); |