Fixed detail file handler to not go crazy
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 Apr 2009 07:40:09 +0000 (09:40 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 Apr 2009 07:40:09 +0000 (09:40 +0200)
commit9e14026d0b2ae0bf5f67a26496d47c078cf187b0
treea723e60c12dcd0c9cc5630f4914174460ceb9d88
parent9d82cac27b7a3ccbc11560a679bae488e42a900e
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

Conflicts:

src/main/event.c
src/modules/frs_detail/frs_detail.c
src/main/event.c
src/modules/frs_detail/frs_detail.c