changed _outgoing_file_hashes into a new map that connects services to tunnel ID instead of file hash, hence avoiding to remove a hash on server side when a tunnel is closed (bug found by Jolavillette)

This commit is contained in:
csoler 2016-09-29 22:30:26 +02:00
parent b62b66a24c
commit 84341f26b3
2 changed files with 11 additions and 10 deletions

View file

@ -400,7 +400,7 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
std::map<TurtleFileHash,TurtleHashInfo> _incoming_file_hashes ;
/// stores file info for each file we provide.
std::map<TurtleFileHash,RsTurtleClientService *> _outgoing_file_hashes ;
std::map<TurtleTunnelId,RsTurtleClientService *> _outgoing_tunnel_client_services ;
/// local tunnels, stored by ids (Either transiting or ending).
std::map<TurtleTunnelId,TurtleTunnel > _local_tunnels ;