update disconnect and order of operations
Alan DeKok
aland at deployingradius.com
Thu Jul 13 15:35:42 UTC 2023
> On Jul 13, 2023, at 9:57 AM, Anatoliy <cphlpd at gmail.com> wrote:
> if we receive accounting pack with Class=outage and DB accessible , we
> should send disconnect message for this session.
Yes.
> But, what happens if NAS
> is busy , or packet will be lost , so we did not receive reply ?
The basic functionality is documented in sites-available/originate-coa.
> Will
> freeradius wait for some timeout before continue to linelog directive or
> sending and processing disconnect message will be executed in parallel and
> we process the linelog without any delay?
It sends the disconnect request *after* the accounting request is done. The server replies to the accounting packet, and then sends the disconnect request.
If there's no response, the disconnect packet is tried a few times. If the NAS never response, the server just gives up on the disconnect.
Note that this is RADIUS... even if the server could do something when the NAS failed to respond to the disconnect packet. What would the server do? Log something? You will still need some kind of manual intervention to fix things.
Alan DeKok.
More information about the Freeradius-Users
mailing list