Bug #2188
closedFaceManager creates UnixStreamChannel when listen=no
100%
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.
Updated by Anonymous about 10 years ago
- Status changed from New to In Progress
- Assignee set to Anonymous
I vaguely remember us having a similar problem with UDP faces. Should we just get rid of the "listen" option? (UDP also lacks a listen option after an earlier change).
Updated by Junxiao Shi about 10 years ago
I agree with deleting unix.listen
option. To disable UnixStreamFace, operator must comment out the unix
section.
Remember to update sample configuration file and NFD Developer Guide.
Updated by Anonymous about 10 years ago
- % Done changed from 0 to 80
I just noticed that disabling unix sockets prevents NRD from connecting to NFD. Should there be a way to configure the type of transport NRD uses? If so, should this be a separate change?
Updated by Junxiao Shi about 10 years ago
I just noticed that disabling unix sockets prevents NRD from connecting to NFD. Should there be a way to configure the type of transport NRD uses? If so, should this be a separate change?
I know the problem with NRD. I'll create a separate Bug.
Updated by Alex Afanasyev about 10 years ago
I would say it is neither NFD or NRD problem. The issue is with default transport for Face class in ndn-cxx. I think the most straightforward way to solve this problem would be to have a compile-time option for ndn-cxx to select default transport. Or simply provide an option to disable unix socket support, which would make tcp/localhost a default transport.
Updated by Anonymous about 10 years ago
- Status changed from In Progress to Code review
Also pushed changes to developer guide.
Updated by Junxiao Shi about 10 years ago
- Related to Feature #2189: Pick Transport type with client.conf added
Updated by Junxiao Shi about 10 years ago
- Related to Bug #2190: NRD cannot start when NFD disables UNIX faces added
Updated by Junxiao Shi about 10 years ago
- Related to deleted (Feature #2189: Pick Transport type with client.conf)
Updated by Junxiao Shi about 10 years ago
- Status changed from Code review to Closed
- % Done changed from 80 to 100
Updated by Junxiao Shi almost 10 years ago
- Related to Bug #2360: Multiple scenarios: ERROR: error while connecting to the forwarder (No such file or directory) added