socket: refresh nonce on timeout
refs: #4196 Change-Id: I34e168a563fef174bb8489269dd49bd87b942e45
This commit is contained in:
1 parent
8ba7d5a162
commit
8dfa63c1dd
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user