mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-21 12:28:26 -04:00
improved calculation of speed in pqistreamer (was called before only when sending bytes), and prevented situation where no HB is received by the connection is not reset because last HB is 0, causing ghost connected peers in GUI
This commit is contained in:
parent
993d7d4c8f
commit
a5044bd71c
6 changed files with 61 additions and 113 deletions
|
@ -43,7 +43,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 = 5;
|
||||
static const time_t HEARTBEAT_REPEAT_TIME = 5;
|
||||
|
||||
#include "pqi/pqiqosstreamer.h"
|
||||
#include "pqi/pqithreadstreamer.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue