On Fri, 2015-02-20 at 01:41 +0800, 163 wrote: > Hello, > > with the latest version, i find out that radius server will not be > notified if the user disconnect manually, resulting in no accounting > recorded. the problem seems to be related to a block of code in sed-mod-db.c > > while (t != NULL) { > if ((now - t->time) > (sec->config->cookie_timeout + > AUTH_SLACK_TIME) && > t->in_use == 0) { > htable_delval(db, &iter); > clean_entry(sec, t); > } > t = htable_next(db, &iter); > > } That's a bit suspicious because this code shouldn't even be reached if the user disconnects normally. Could you show the ocserv logs in the case where radius server is not notified? regards, Nikos