mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-17 20:04:22 -05:00
add debug log for connection manager
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1765 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6eaf201120
commit
3d82d40a96
@ -819,7 +819,9 @@ void p3ConnectMgr::netUdpCheck()
|
|||||||
std::cerr << "p3ConnectMgr time since last reset : " << delta << std::endl;
|
std::cerr << "p3ConnectMgr time since last reset : " << delta << std::endl;
|
||||||
#endif
|
#endif
|
||||||
if (delta > MAX_UDP_INIT) {
|
if (delta > MAX_UDP_INIT) {
|
||||||
//if we got no external ip address let's do a network reset
|
#ifdef CONN_DEBUG
|
||||||
|
std::cerr << "we got no external ip address from udp stun, let's do a network reset." << delta << std::endl;
|
||||||
|
#endif
|
||||||
netReset();
|
netReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1083,7 +1085,7 @@ bool p3ConnectMgr::stunCheck()
|
|||||||
if (doNetReset)
|
if (doNetReset)
|
||||||
{
|
{
|
||||||
#ifdef CONN_DEBUG
|
#ifdef CONN_DEBUG
|
||||||
std::cerr << "Resetting Network" << std::endl;
|
std::cerr << "Stun trying to reeset Network" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//don't do a reset it if the udp init is not finished
|
//don't do a reset it if the udp init is not finished
|
||||||
@ -3147,6 +3149,9 @@ bool p3ConnectMgr::checkNetAddress()
|
|||||||
std::cerr << "ownState.localaddr.sin_port : " << ownState.localaddr.sin_port << std::endl;
|
std::cerr << "ownState.localaddr.sin_port : " << ownState.localaddr.sin_port << std::endl;
|
||||||
#endif
|
#endif
|
||||||
if ((old_in_addr != ownState.localaddr.sin_addr.s_addr) || (old_in_port != ownState.localaddr.sin_port)) {
|
if ((old_in_addr != ownState.localaddr.sin_addr.s_addr) || (old_in_port != ownState.localaddr.sin_port)) {
|
||||||
|
#ifdef CONN_DEBUG
|
||||||
|
std::cerr << "local address changed, resetting network." << std::endl;
|
||||||
|
#endif
|
||||||
//local address changed, resetting network
|
//local address changed, resetting network
|
||||||
netReset();
|
netReset();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user