Closed MahdiBaghbani closed 3 years ago
So far so good I have tracked down the issue to below lines of code.
Here it seems we define the default timeout to be 10 and as I read your past issues and closed issues I understand that the time is in seconds so it means 10 seconds. https://github.com/cn-uofbasel/ccn-lite/blob/f125b9fb33c39074190f165c237652a669b8485a/src/ccnl-core/include/ccnl-defs.h#L74-L76
then I come to this issue here #210 so it seems that you have seen it before and fixed it, but why the issue still persists?
I explored the changes you made to solve this problem and I think I spotted the problem in this commit: 92e797e32d344a1b9a618353c0b1cb7e21597245
so here you made an exception for NDN because it's lifetime should be in milliseconds rather than seconds and you will divide it by 1000 to be compatible with your actual aging function which is operated in seconds: https://github.com/cn-uofbasel/ccn-lite/blob/f125b9fb33c39074190f165c237652a669b8485a/src/ccnl-core/src/ccnl-pkt-util.c#L231-L234
but you forget something! I was wondering why this works in RIOT and not in my PC, so here it is: https://github.com/cn-uofbasel/ccn-lite/blob/f125b9fb33c39074190f165c237652a669b8485a/src/ccnl-riot/src/ccn-lite-riot.c#L531 https://github.com/cn-uofbasel/ccn-lite/blob/f125b9fb33c39074190f165c237652a669b8485a/src/ccnl-pkt/src/ccnl-pkt-ndntlv.c#L154
it seems while you changed the RIOT NDN specification to milliseconds you forget to do it for the actual NDN data packet structure.
Description
I was trying to stream video using ndn format and created the stream packets with ccn-lite-produce and tried to receive them with ccn-lite-fetch but the relay always shows timeout.
Steps to reproduce the issue
Expected results
no timeout!
Actual results
timeout
Versions
Operating system: Linux, Compiler: GCC 9