From 8718f26b2e232fd0c32170d3e45f84349389d37a Mon Sep 17 00:00:00 2001 From: yuqing Date: Fri, 31 Oct 2014 11:05:15 +0800 Subject: [PATCH] must set timeout entry's dlink to NULL because NOT in time wheel --- HISTORY | 3 ++- src/ioevent_loop.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index e31f916..751a501 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ -Version 1.10 2014-11-01 +Version 1.10 2014-10-31 * correct iovent macro define + * must set timeout entry's dlink to NULL because NOT in time wheel Version 1.09 2014-10-26 * Version struct add variable: patch diff --git a/src/ioevent_loop.c b/src/ioevent_loop.c index 4c25225..ea80f7b 100644 --- a/src/ioevent_loop.c +++ b/src/ioevent_loop.c @@ -60,6 +60,7 @@ static void deal_timeouts(FastTimerEntry *head) current = entry; entry = entry->next; + current->prev = current->next = NULL; //must set NULL because NOT in time wheel pEventEntry = (IOEventEntry *)current->data; if (pEventEntry != NULL) {