Mercurial > hg > freeDiameter
comparison extensions/app_radgw/rgw_clients.c @ 546:0790fcf2fbfc
Add a trace in the purge thread
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 14 Sep 2010 16:24:09 +0900 |
parents | b0f9b0e1b564 |
children | 77b575250103 |
comparison
equal
deleted
inserted
replaced
545:b0f9b0e1b564 | 546:0790fcf2fbfc |
---|---|
155 | 155 |
156 /* Check the first item in the list */ | 156 /* Check the first item in the list */ |
157 struct req_info * r = (struct req_info *)(client->dupl_info[p].dupl_by_time.next->o); | 157 struct req_info * r = (struct req_info *)(client->dupl_info[p].dupl_by_time.next->o); |
158 | 158 |
159 if (now - r->received > DUPLICATE_CHECK_LIFETIME) { | 159 if (now - r->received > DUPLICATE_CHECK_LIFETIME) { |
160 | |
161 TRACE_DEBUG(ANNOYING + 1, "Purging RADIUS request (id: %02hhx, port: %hu, dup #%d, age %d secs)", r->id, ntohs(r->port), r->nbdup, now - r->received); | |
162 | |
160 /* Remove this record */ | 163 /* Remove this record */ |
161 fd_list_unlink(&r->by_time); | 164 fd_list_unlink(&r->by_time); |
162 fd_list_unlink(&r->by_id); | 165 fd_list_unlink(&r->by_id); |
163 dupl_free_req_info(r); | 166 dupl_free_req_info(r); |
164 } else { | 167 } else { |