mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-24 16:15:37 +02:00
fixed race condition
This commit is contained in:
parent
9c7fcfbe3f
commit
ab0bd908ec
4 changed files with 27 additions and 10 deletions
2
SSU.h
2
SSU.h
|
@ -7,6 +7,7 @@
|
|||
#include <list>
|
||||
#include <set>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <boost/asio.hpp>
|
||||
#include "aes.h"
|
||||
#include "I2PEndian.h"
|
||||
|
@ -75,6 +76,7 @@ namespace transport
|
|||
std::list<boost::asio::ip::udp::endpoint> m_Introducers; // introducers we are connected to
|
||||
i2p::crypto::AESAlignedBuffer<2*SSU_MTU_V4> m_ReceiveBuffer;
|
||||
i2p::crypto::AESAlignedBuffer<2*SSU_MTU_V6> m_ReceiveBufferV6;
|
||||
std::mutex m_SessionsMutex;
|
||||
std::map<boost::asio::ip::udp::endpoint, std::shared_ptr<SSUSession> > m_Sessions;
|
||||
std::map<uint32_t, boost::asio::ip::udp::endpoint> m_Relays; // we are introducer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue