cluster: Don't wait for peer chap answer before leaving

The next master can restart the authentication
This commit is contained in:
Samuel Thibault 2025-03-30 15:48:44 +02:00
parent 5c0e3949f8
commit 7d2d97436c

View file

@ -5809,6 +5809,8 @@ static int still_busy(void)
continue; continue;
if (radius[i].state == RADIUSWAIT) if (radius[i].state == RADIUSWAIT)
continue; continue;
if (radius[i].state == RADIUSCHAP)
continue;
if (last_talked != TIME) if (last_talked != TIME)
{ {
@ -8342,6 +8344,13 @@ void become_master(void)
epoll_ctl(epollfd, EPOLL_CTL_ADD, radfds[i], &e); 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) int cmd_show_hist_idle(struct cli_def *cli, const char *command, char **argv, int argc)