<div dir="ltr">Thanks Junxiao for the comments. <div><br></div><div>In my case, actually it is working. I have now moved the <span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">sendInterest</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">();</span>call to onRegisterSuccess(const Name& prefix); method which is being called by the setInterestFilter(). In my logic, I am receiving a return Interest from remote end. Earlier, this was kicking in while register was in progress. However, now with help of onRegisterSuccess(), I think there is one RTT time available for registration of filter to go through. </div><div><br></div><div>I agree, in real world scenario, there will certainly be delay between when producer initialize and when consumer starts requesting for data, and therefore probability of this race condition, perhaps is lower, if not 0. I was programatically forcing this race condition to occur and hence it failed. I guess, for now I am good. </div><div><br></div><div>/anil.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 4:13 PM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Anil<div><br></div><div>When onSuccess callback is invoked, it's not guaranteed for local NFD to deliver Interest toward the application.</div><div>It only means the registration command has been accepted, but the command processing may still be in progress.</div><div>See <a href="http://redmine.named-data.net/projects/nfd/wiki/RibMgmt" target="_blank">RIB Management protocol</a> "Semantics of successful responses" section for details. See also <a href="http://redmine.named-data.net/issues/2761" target="_blank">Bug 2761</a> for discussion on this behavior.</div><div><br></div><div>The consumer is responsible for retransmissions until Interest is delivered to and answered by the producer.</div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Yours, Junxiao</div><span class=""><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 4:04 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>we need to wait till registration of the filter is successful. Let me also implement the onSuccess() method, and then we won't have this situation. </div></div></blockquote></div></div></span></div></div>
</blockquote></div><br></div>