From 79138790ddab663d5188769ccf1b1f5b3b8f2dd9 Mon Sep 17 00:00:00 2001 From: joss17 Date: Tue, 22 Dec 2009 12:30:44 +0000 Subject: [PATCH] add debug code for tunnel test git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1932 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqissl.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index 900f889b7..5b60b1a78 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -725,6 +725,16 @@ int pqissl::Basic_Connection_Complete() rslog(RSL_DEBUG_BASIC, pqisslzone, "pqissl::Basic_Connection_Complete()..."); +#ifdef DEBUG_PQISSL_TUNNEL + rslog(RSL_DEBUG_BASIC, pqisslzone, + "pqissl::Basic_Connection_Complete() parent()->PeerId() : " + parent()->PeerId()); + if (parent()->PeerId() == "83515db66b37e7a916535aa16a498c00" || parent()->PeerId() == "eedd76e9ebf775a707f5fb90bd651e00") { + rslog(RSL_DEBUG_BASIC, pqisslzone, + "pqissl::Basic_Connection_Complete() resetting connection for test purpose."); + reset(); + } +#endif + /* new TimeOut code. */ if (time(NULL) > mTimeoutTS) {