• Alessandro Rubini's avatar
    bugfix: state-fault must delay a while before reinitializing ppi · 8bd9b76e
    Alessandro Rubini authored
    This is a long-standing bug introduced when fsm.c was changed to
    immediately enter a new state (before that, we had a grace period in
    state-faulty).  The problem is exposed by running the suggested
    config file, if eth1 and/or eth2 exist but are currently down.
    
    This patch introduces a specific timeout, so we wait 4 seconds before
    reinitializing the pp instance; we thus avoid burning 100% CPU Time in
    trying again and again.
    
    As a side effect, this reduces timeouts provided to extensions from 4
    to 3. I could have reused one of the other timeouts, as faulty state
    does not use them, but I'd better have proper timeout names in
    diagnostics.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    8bd9b76e
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
time-bare Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...