Correctly track direction and privilege of peer connections, pass to load tracking.

This commit is contained in:
JoelKatz
2013-01-14 23:30:13 -08:00
parent 8f6c597373
commit 33b2a20024
4 changed files with 20 additions and 7 deletions

View File

@@ -312,8 +312,8 @@ Peer::pointer ConnectionPool::peerConnect(const std::string& strIp, int iPort)
if ((it = mIpMap.find(pipPeer)) == mIpMap.end())
{
Peer::pointer ppNew(Peer::create(theApp->getIOService(),
theApp->getPeerDoor().getSSLContext(), ++mLastPeer));
Peer::pointer ppNew(Peer::create(theApp->getIOService(), theApp->getPeerDoor().getSSLContext(),
++mLastPeer, false));
// Did not find it. Not already connecting or connected.
ppNew->connect(strIp, iPort);