mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-03 12:19:31 -05:00
set heartbeat values to intermediate values
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3069 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0095976d21
commit
d28c1f7cb7
@ -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 * 10) {
|
||||
(time(NULL) - lastHeartbeatReceived) > HEARTBEAT_REPEAT_TIME * 5) {
|
||||
pqioutput(PQL_WARNING, pqipersonzone, "pqiperson::tick() No heartbeat from the peer, assume connection is dead.");
|
||||
this->reset();
|
||||
}
|
||||
|
@ -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 = 10;
|
||||
static const int HEARTBEAT_REPEAT_TIME = 5;
|
||||
|
||||
#include "pqi/pqistreamer.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user