Skip to content

Commit

Permalink
Skip Status-Server checks if the NAS is retransmitting
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Aug 20, 2015
1 parent 3d18674 commit 64b7508
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -3450,6 +3450,12 @@ static void ping_home_server(void *ctx)
return;
}

/*
* Skip Status-Server checks if the NAS is retransmitting
* packets. If it responds to one of the normal packets,
* it will be marked "alive".
*/
if ((home->last_packet_sent + home->ping_timeout) >= now.tv_sec) goto reset_timer;

request = request_alloc(NULL);
if (!request) return;
Expand Down Expand Up @@ -3551,6 +3557,7 @@ static void ping_home_server(void *ctx)
request->proxy_listener->send(request->proxy_listener,
request);

reset_timer:
/*
* Add +/- 2s of jitter, as suggested in RFC 3539
* and in the Issues and Fixes draft.
Expand Down

0 comments on commit 64b7508

Please sign in to comment.