Skip to content

Commit

Permalink
Set ICMP idle interval when connection goes down
Browse files Browse the repository at this point in the history
  • Loading branch information
tievolu authored Sep 30, 2022
1 parent 4dacb97 commit 3f468c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sqm-autorate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2637,9 +2637,15 @@ sub handle_connection_down {
if ($log_bw_changes) { &print_latency_results_summary(@{$summary_results_array_ref}); }

# Send high priority alert to the syslog
&output(1, "Internet connection appears to be down. Taking no action.", 1);
&output(1, "Internet connection appears to be down.", 1);
&set_connection_down();

# Set ICMP interval to idle
if ($icmp_interval_idle > 0 && $icmp_interval != $icmp_interval_idle) {
if ($debug_icmp_adaptive) { &output(0, "ICMP ADAPTIVE DEBUG: Setting ICMP interval to $icmp_interval_idle" . "s"); }
$icmp_interval != $icmp_interval_idle;
}

# Indicate that connection state has changed
return 1;
} else {
Expand Down

0 comments on commit 3f468c9

Please sign in to comment.