diff --git a/libretroshare/src/pqi/pqiperson.cc b/libretroshare/src/pqi/pqiperson.cc index c135db796..1ee4fdb5f 100644 --- a/libretroshare/src/pqi/pqiperson.cc +++ b/libretroshare/src/pqi/pqiperson.cc @@ -115,7 +115,7 @@ int pqiperson::tick() //if lastHeartbeatReceived is 0, it might be not activated so don't do a net reset. if (active && lastHeartbeatReceived != 0 && - (time(NULL) - lastHeartbeatReceived) > HEARTBEAT_REPEAT_TIME * 3) { + (time(NULL) - lastHeartbeatReceived) > HEARTBEAT_REPEAT_TIME * 10) { pqioutput(PQL_WARNING, pqipersonzone, "pqiperson::tick() No heartbeat from the peer, assume connection is dead."); this->reset(); } diff --git a/libretroshare/src/pqi/pqiperson.h b/libretroshare/src/pqi/pqiperson.h index ea6176307..7605707b6 100644 --- a/libretroshare/src/pqi/pqiperson.h +++ b/libretroshare/src/pqi/pqiperson.h @@ -41,7 +41,7 @@ static const int CONNECT_UNREACHABLE = 3; static const int CONNECT_FIREWALLED = 4; static const int CONNECT_FAILED = 5; -static const int HEARTBEAT_REPEAT_TIME = 6; +static const int HEARTBEAT_REPEAT_TIME = 10; #include "pqi/pqistreamer.h"