socket: refresh nonce on timeout
refs: #4196
Change-Id: I34e168a563fef174bb8489269dd49bd87b942e45
diff --git a/src/socket.cpp b/src/socket.cpp
index 0fd5707..f70d900 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -234,7 +234,10 @@
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