Fixed detail file handler to not go crazy
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 Apr 2009 07:32:39 +0000 (09:32 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 Apr 2009 07:32:39 +0000 (09:32 +0200)
commit83514326a33e2585733f4794902946c561930321
treec83a39d09b5b75aa1b1934d5bab8a26f8900aa81
parent3d3622c8b266bf833168c1a91ccacebf448d57ce
Fixed detail file handler to not go crazy

In short, the detail timer events are now inserted with a
saved fr_event_t.  This allows *existing* timer events to be deleted
when a new one is added.  The previous code would *add* timer events
on top of the existing ones, causing geometric increases in the
number of polls per second.

Also, re-arranged the detail && listener code so that there's only
one location where the timer gets inserted, and only one location
where the delays get propogated from the detail to the event handlers
src/include/detail.h
src/main/detail.c
src/main/event.c