slow response for Accounting (delay 1s) module rest

Dmitry Yashin thefree at mail.ru
Tue May 23 07:35:44 CEST 2017


hi, i used FreeRADIUS Version 3.0.13 with module rest, module rest always
respond 200 (OK) no have any logics, for access request is fast ~ 0.05 sec.
for accounting request is always delay 1 sec.

tcpdump
08:00:42.118052 IP 1.1.1.20.47219 > 2.2.2.126.radius: RADIUS,
Access-Request (1), id: 0xa2 length: 384
08:00:42.123236 IP 2.2.2.126.radius > 1.1.1.20.47219: RADIUS, Access-Accept
(2), id: 0xa2 length: 43
08:00:43.498508 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS,
Accounting-Request (4), id: 0xa5 length: 1023
08:00:43.885234 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS,
Accounting-Request (4), id: 0xa5 length: 1023
08:00:44.185854 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS,
Accounting-Request (4), id: 0xa5 length: 1023
08:00:44.486452 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS,
Accounting-Request (4), id: 0xa5 length: 1023
08:00:44.503668 IP 2.2.2.126.radius-acct > 1.1.1.20.47219: RADIUS,
Accounting-Response (5), id: 0xa5 length: 43

log radius
Tue May 23 08:00:43 2017 : Error: (25) Ignoring duplicate packet from
client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component
accounting module rest
Tue May 23 08:00:44 2017 : Error: (25) Ignoring duplicate packet from
client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component
accounting module rest
Tue May 23 08:00:44 2017 : Error: (25) Ignoring duplicate packet from
client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component
accounting module rest

config
max_request_time = 30
cleanup_delay = 1
max_requests = 65535
hostname_lookups = no
max_attributes = 500
reject_delay = 0
status_server = yes
proxy_requests = no

test backend for rest in ab (Apache Benchmark) is very fast.
How i can make accounting response < 0.05 sec ?


More information about the Freeradius-Users mailing list