cluster: Don't wait for peer chap answer before leaving
The next master can restart the authentication
This commit is contained in:
parent
5c0e3949f8
commit
7d2d97436c
1 changed files with 9 additions and 0 deletions
9
l2tpns.c
9
l2tpns.c
|
|
@ -5809,6 +5809,8 @@ static int still_busy(void)
|
|||
continue;
|
||||
if (radius[i].state == RADIUSWAIT)
|
||||
continue;
|
||||
if (radius[i].state == RADIUSCHAP)
|
||||
continue;
|
||||
|
||||
if (last_talked != TIME)
|
||||
{
|
||||
|
|
@ -8342,6 +8344,13 @@ void become_master(void)
|
|||
|
||||
epoll_ctl(epollfd, EPOLL_CTL_ADD, radfds[i], &e);
|
||||
}
|
||||
|
||||
for (s = 1; s <= config->cluster_highest_sessionid ; ++s)
|
||||
{
|
||||
// Previous master had an authentication pending, restart it
|
||||
if (session[s].ppp.phase == Authenticate && sess_local[s].lcp_authtype == AUTHCHAP)
|
||||
sendchap(s, session[s].tunnel);
|
||||
}
|
||||
}
|
||||
|
||||
int cmd_show_hist_idle(struct cli_def *cli, const char *command, char **argv, int argc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue