[Ndn-interest] FIB was disappear when sending recv a mount of packets

Alex Afanasyev aa at CS.UCLA.EDU
Sun Sep 20 11:36:22 PDT 2015


> On Sep 20, 2015, at 6:11 AM, ndn ndn <ndn at sqh.me> wrote:
> 
> Hello Alex,
> Thanks for your answer, I realize that I put nun::face create in a for loops, the face object will deconstruct when my program exit, not the face class deconstruct.So it cause this problem.
> After do that, I find the nfd not crashed and it looks work well.Thanks for your help.
> 
> But I also wonder, Does nun::face class is thread-safety?Can I use face in different thread?

Hi Qihan,

Yes, ndn::Face class is thread-safe and you can call expressInterest, put, registerPrefix, etc. methods from any other thread.  However, processEvents method (or the underlying run() method of boost::asio::io_service object) must be called in exactly one thread, which is usually a main thread of the application.

--
Alex

> 
> Yours, qihan.
> 
> 
> 2015-09-19 6:51 GMT+08:00 Alex Afanasyev <aa at cs.ucla.edu <mailto:aa at cs.ucla.edu>>:
> Hi Qihan,
> 
> This is an interesting error that we haven't seen before.  However, it is directly related to user-limit on number of open files.  You can check this thread https://forums.gentoo.org/viewtopic-t-464088-start-0.html <https://forums.gentoo.org/viewtopic-t-464088-start-0.html> that has a similar error and has a suggested solution.
> 
> From the log I see that your application (or applications) keep connecting to NFD, with ~1023 (before crash) active apps.  I wonder, is it your real intention or it is a some sort of an accident?  I mean, do you really want that many applications to be active?
> 
> ---
> Alex
> 
>> On Sep 18, 2015, at 12:20 AM, ndn ndn <ndn at sqh.me <mailto:ndn at sqh.me>> wrote:
>> 
>> Dear JunXiao,
>>    After I use the Head version in NFD, but it not works.
>>    At my program beginning, NFD print log like this:
>> 
>>    1442558776.874014 INFO: [UnixStreamFace] [id=-1,local=unix:///run/nfd.sock,remote=fd://1022] <> Creating face
>>    1442558776.875411 INFO: [FaceTable] Added face id=1255 remote=fd://1022 <> local=unix:///run/nfd.sock <>
>>    1442558776.893996 INFO: [UnixStreamFace] [id=-1,local=unix:///run/nfd.sock,remote=fd://1023] <> Creating face
>>    1442558776.895382 INFO: [FaceTable] Added face id=1256 remote=fd://1023 <> local=unix:///run/nfd.sock <>
>> 
>> 
>>    When the number raise to 1023, the NFD is crashed. NFD-log tells me:
>>     442559257.847426 FATAL: [NFD] OS_Rng: open /dev/urandom operation failed with error 24
>> 
>>     I don't know what happen in NFD? seems random number generator broken when I send a small file, the NFD isn't crashed.
>> 
>> Yours, Qihan
>> _______________________________________________
>> Ndn-interest mailing list
>> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150920/7cfc42c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150920/7cfc42c6/attachment.bin>


More information about the Ndn-interest mailing list