create/delete stream per destination only

This commit is contained in:
orignal 2014-10-15 18:24:40 -04:00
parent 341e860caa
commit 18d6a2c70e
6 changed files with 7 additions and 33 deletions

View file

@ -223,7 +223,7 @@ namespace proxy
void SOCKS4AHandler::SentConnectionSuccess(const boost::system::error_code & ecode)
{
LogPrint("--- socks4a making connection");
m_stream = i2p::stream::CreateStream(*m_ls);
m_stream = i2p::stream::GetSharedLocalDestination ()->CreateNewOutgoingStream(*m_ls);
m_state = OKAY;
LogPrint("--- socks4a state is ", m_state);
AsyncSockRead();