socket: refresh nonce on timeout

refs: #4196

Change-Id: I34e168a563fef174bb8489269dd49bd87b942e45
This commit is contained in:
Ashlesh Gawande committed 2017-07-31 17:18:10 -05:00
1 parent 8ba7d5a162
commit 8dfa63c1dd
1 file changed
+4 -1
+4 -1
View File
@@ -234,7 +234,10 @@ Socket::onDataTimeout(const Interest& interest, int nRetries,
if (nRetries <= 0)
return;
m_face.expressInterest(interest,
Interest newNonceInterest(interest);
newNonceInterest.refreshNonce();
m_face.expressInterest(newNonceInterest,
bind(&Socket::onData, this, _1, _2, onValidated, onFailed),
bind(&Socket::onDataTimeout, this, _1, nRetries - 1,
onValidated, onFailed), // Nack