[RADIATOR] Reload Clients cache list ?

Patrik Forsberg patrik.forsberg at globalconnect.se
Wed Oct 20 11:53:37 UTC 2021


Hello,

Looks very nice, thanks! ??

---
Regards,
Patrik Forsberg

> -----Original Message-----
> From: radiator <radiator-bounces at lists.open.com.au> On Behalf Of Heikki
> Vatiainen
> Sent: den 20 oktober 2021 11:49
> To: radiator at lists.open.com.au
> Subject: Re: [RADIATOR] Reload Clients cache list ?
> 
> On 14.10.2021 14.11, Patrik Forsberg wrote:
> 
> > Yes I'm aware of that but there is no way to manually force an update prior
> to the RefreshPeriod trigger ?
> 
> Here's one method if you don't mind needing to use internals a bit more than
> usual. Theory of operation:
> - There is only one ClientList of any type (if not, adjust [0] below)
> - RefreshPeriod is configured
> - Between refresh events, 'kill -WINCH <pid>' forces action that is similar of
> periodic refresh happening
> - refresh_timeout() is called by periodic event scheduler.
> refresh_timeout() also sets the trigger for the next periodic timeout
> 
> In short: the above triggers additional refresh between periodic refresh
> triggers.
> 
> WINCHHook sub { my $cl = $main::config->{ClientList}->[0]; \
>     my $handle = $cl->{_timeouthandle}; \
>     Radius::Select::remove_timeout($handle); \
>     Radius::ClientListSQL::refresh_timeout($handle, $cl); }
> 
> If you run Radiator with debug logging enabled, it will show what happens
> with SIGWINCH.
> 
> Thanks,
> Heikki
> 
> 
> --
> Heikki Vatiainen
> OSC, makers of Radiator
> Visit radiatorsoftware.com for Radiator AAA server software
> _______________________________________________
> radiator mailing list
> radiator at lists.open.com.au
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.o
> pen.com.au%2Fmailman%2Flistinfo%2Fradiator&data=04%7C01%7Cpatr
> ik.forsberg%40globalconnect.se%7C39cd3d8b9ebd4bf0d04208d993aef03d%7
> Cdfbb0d3b8276458197a42b844a84ea35%7C0%7C0%7C637703202884193703%
> 7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC
> JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2F0zLhLCF6qql1uIS
> %2F42cdAZOjbS6%2FxlRsws0GhuPBBI%3D&reserved=0


More information about the radiator mailing list