mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-06 19:19:16 +00:00
fix to stop runaway last update time that was squelching keepalive
messages.
This commit is contained in:
parent
b198db38b9
commit
8aae21232f
@ -155,12 +155,18 @@ int monitor_poll()
|
|||||||
int s;
|
int s;
|
||||||
struct sockaddr ignored_address;
|
struct sockaddr ignored_address;
|
||||||
socklen_t ignored_length=sizeof(ignored_address);
|
socklen_t ignored_length=sizeof(ignored_address);
|
||||||
|
WHY("here");
|
||||||
|
|
||||||
/* tell all monitor clients about status of all calls periodically */
|
/* tell all monitor clients about status of all calls periodically */
|
||||||
long long now=overlay_gettime_ms();
|
long long now=overlay_gettime_ms();
|
||||||
char msg[128];
|
char msg[128];
|
||||||
int m;
|
int m;
|
||||||
|
if (monitor_last_update_time>(now+1000)) {
|
||||||
|
WHY("Fixed run away monitor_last_update_time");
|
||||||
|
monitor_last_update_time=now+1000;
|
||||||
|
}
|
||||||
if (now>(monitor_last_update_time+1000)) {
|
if (now>(monitor_last_update_time+1000)) {
|
||||||
|
WHY("Send keep alives");
|
||||||
monitor_last_update_time=now;
|
monitor_last_update_time=now;
|
||||||
int i;
|
int i;
|
||||||
for(i=0;i<vomp_call_count;i++) {
|
for(i=0;i<vomp_call_count;i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user