Project

General

Profile

Actions

Bug #2188

closed

FaceManager creates UnixStreamChannel when listen=no

Added by Junxiao Shi over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Management
Target version:
Start date:
11/17/2014
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Code snippet from mgmt/face-manager.cpp:

shared_ptr<UnixStreamChannel> unixChannel = factory->createChannel(path);

if (needToListen) {
  unixChannel->listen(bind(&FaceTable::add, &m_faceTable, _1),
                      UnixStreamChannel::ConnectFailedCallback());
}

UnixStreamChannel is useless when not listening, so its creation should be skipped altogether.


Related issues 2 (0 open2 closed)

Related to NFD - Bug #2190: NRD cannot start when NFD disables UNIX facesClosed

Actions
Related to NFD - Bug #2360: Multiple scenarios: ERROR: error while connecting to the forwarder (No such file or directory)ClosedHila Ben Abraham01/08/2015

Actions
Actions

Also available in: Atom PDF