implemented a verification for tunnel results. When the network gets heavily loaded, some tunnel results happen to get back twice. This stops the tunnel result sibblings

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4152 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-04-10 19:22:15 +00:00
parent 97b4d5df41
commit 4ea647b78c
2 changed files with 22 additions and 8 deletions

View file

@ -139,6 +139,7 @@
#include <string>
#include <list>
#include <set>
#include "pqi/pqinetwork.h"
#include "pqi/pqi.h"
@ -165,6 +166,7 @@ class TurtleRequestInfo
TurtlePeerId origin ; // where the request came from.
uint32_t time_stamp ; // last time the tunnel was actually used. Used for cleaning old tunnels.
int depth ; // depth of the request. Used to optimize tunnel length.
std::set<uint32_t> responses; // responses to this request. Useful to avoid spamming tunnel responses.
};
class TurtleTunnel