don't lookup session for every sinle packet

This commit is contained in:
orignal 2022-04-07 10:57:57 -04:00
parent 207b13dcab
commit 51cbffd097
2 changed files with 15 additions and 5 deletions

View file

@ -269,6 +269,7 @@ namespace transport
std::map<boost::asio::ip::udp::endpoint, std::pair<uint64_t, uint32_t> > m_IncomingTokens, m_OutgoingTokens; // remote endpoint -> (token, expires in seconds)
i2p::util::MemoryPoolMt<Packet> m_PacketsPool;
boost::asio::deadline_timer m_TerminationTimer, m_ResendTimer;
std::shared_ptr<SSU2Session> m_LastSession;
public: