Project

General

Profile

Actions

Bug #1314

closed

Face::checkPitExpire should not close transport

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

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

If the app isn't listening at any prefix, the transport is closed after all pending Interests are satisfied.

https://github.com/named-data/ndn-cpp-dev/blob/42c81850465c3db5ad68236afa308e89d3d383f9/src/face.cpp#L308

This behavior is undesirable for low traffic apps, such as ndn-tlv-ping who sends an Interest every 1 second and gets answered within 6 milliseconds.
The library closes the transport after each Interest is satisfied, which forces the forwarder to destroy and create face once per second, causing performance issues.

Actions

Also available in: Atom PDF