Changeset 37:cc3c59fe98fe in freeDiameter for freeDiameter/p_expiry.c
- Timestamp:
- Nov 5, 2009, 2:28:46 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_expiry.c
r36 r37 61 61 struct fd_peer * peer = (struct fd_peer *)li; 62 62 63 if (peer->p_hdr.info. pi_state != STATE_ZOMBIE)63 if (peer->p_hdr.info.runtime.pir_state != STATE_ZOMBIE) 64 64 continue; 65 65 66 if (peer->p_hdr.info. pi_flags.persist == PI_PRST_ALWAYS)66 if (peer->p_hdr.info.config.pic_flags.persist == PI_PRST_ALWAYS) 67 67 continue; /* This peer was not supposed to terminate, keep it in the list for debug */ 68 68 … … 158 158 CHECK_FCT_DO( fd_thr_term(&exp_thr), ); 159 159 CHECK_POSIX( pthread_mutex_lock(&exp_mtx) ); 160 161 160 while (!FD_IS_LIST_EMPTY(&exp_list)) { 162 161 struct fd_peer * peer = (struct fd_peer *)(exp_list.next->o); 163 162 fd_list_unlink(&peer->p_expiry ); 164 163 } 165 166 164 CHECK_POSIX( pthread_mutex_unlock(&exp_mtx) ); 165 167 166 CHECK_FCT_DO( fd_thr_term(&gc_thr), ); 168 167 return 0; … … 180 179 181 180 /* if peer expires */ 182 if (peer->p_hdr.info. pi_flags.exp) {181 if (peer->p_hdr.info.config.pic_flags.exp) { 183 182 struct fd_list * li; 184 183 185 184 /* update the p_exp_timer value */ 186 185 CHECK_SYS( clock_gettime(CLOCK_REALTIME, &peer->p_exp_timer) ); 187 peer->p_exp_timer.tv_sec += peer->p_hdr.info. pi_lft;186 peer->p_exp_timer.tv_sec += peer->p_hdr.info.config.pic_lft; 188 187 189 188 /* add to the expiry list in appropriate position (probably around the end) */
Note: See TracChangeset
for help on using the changeset viewer.