Bring links down gently when their throughput isn't enough for
the ``set autoload'' value. Don't just ``down'' the link. Don't get stuck in ``ready'' the first time we ``close'' a link.
This commit is contained in:
parent
3e0b9be4c8
commit
14fd42d30d
@ -1739,7 +1739,7 @@ bundle_AutoAdjust(struct bundle *bundle, int percent, int what)
|
||||
} else if (otherlinkup) { /* Only bring the second-last link down */
|
||||
log_Printf(LogPHASE, "%d%% saturation -> Closing link ``%s''\n",
|
||||
percent, choice->name);
|
||||
datalink_Down(choice, CLOSE_NORMAL);
|
||||
datalink_Close(choice, CLOSE_STAYDOWN);
|
||||
mp_StopAutoloadTimer(&bundle->ncp.mp);
|
||||
}
|
||||
}
|
||||
|
@ -952,7 +952,7 @@ datalink_Close(struct datalink *dl, int how)
|
||||
if (how == CLOSE_LCP)
|
||||
dl->stayonline = 1;
|
||||
}
|
||||
break;
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
datalink_ComeDown(dl, how);
|
||||
|
Loading…
x
Reference in New Issue
Block a user