<div dir="ltr">Hello Alex,<div>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.<div>After do that, I find the nfd not crashed and it looks work well.Thanks for your help.</div><div><br></div><div>But I also wonder, Does nun::face class is thread-safety?Can I use face in different thread?</div><div><br></div><div>Yours, qihan.</div><div>  </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-19 6:51 GMT+08:00 Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Qihan,</div><div><br></div><div>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 <a href="https://forums.gentoo.org/viewtopic-t-464088-start-0.html" target="_blank">https://forums.gentoo.org/viewtopic-t-464088-start-0.html</a> that has a similar error and has a suggested solution.</div><div><br></div><div>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?</div><div><br></div><div>---</div><div>Alex</div><br><div><blockquote type="cite"><div><div class="h5"><div>On Sep 18, 2015, at 12:20 AM, ndn ndn <<a href="mailto:ndn@sqh.me" target="_blank">ndn@sqh.me</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><span style="font-size:14px">Dear JunXiao,</span><div style="font-size:14px">   After I use the Head version in NFD, but it not works.</div><div style="font-size:14px">   At my program beginning, NFD print log like this:</div><div style="font-size:14px"><br></div><div style="font-size:14px">   1442558776.874014 INFO: [UnixStreamFace] [id=-1,local=<a>unix:///run/nfd.sock,remote=fd://1022]</a> Creating face</div><div style="font-size:14px">   1442558776.875411 INFO: [FaceTable] Added face id=1255 remote=<a>fd://1022</a> local=<a>unix:///run/nfd.sock</a></div><div style="font-size:14px">   1442558776.893996 INFO: [UnixStreamFace] [id=-1,local=<a>unix:///run/nfd.sock,remote=fd://1023]</a> Creating face</div><div style="font-size:14px">   1442558776.895382 INFO: [FaceTable] Added face id=1256 remote=<a>fd://1023</a> local=<a>unix:///run/nfd.sock</a></div><div style="font-size:14px"><br></div><div style="font-size:14px"><br></div><div style="font-size:14px">   When the number raise to 1023, the NFD is crashed. NFD-log tells me:</div><div style="font-size:14px">    442559257.847426 FATAL: [NFD] OS_Rng: open /dev/urandom operation failed with error 24<br></div><div style="font-size:14px"><br></div><div style="font-size:14px">    I don't know what happen in NFD? seems random number generator broken when I send a small file, the NFD isn't crashed.</div><div style="font-size:14px"><br></div><div style="font-size:14px">Yours, Qihan</div></div></div></div>
_______________________________________________<br>Ndn-interest mailing list<br><a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br></div></blockquote></div><br></div></blockquote></div><br></div>