o Revise the new evbuffer_reserve_space/evbuffer_commit_space() interfaces so that you can use them without causing extraneous copies or leaving gaps in the evbuffer.
o Add a new evbuffer_peek() interface to inspect data in an evbuffer without removing it.
o Fix a deadlock when suspending reads in a bufferevent due to a full buffer. (Spotted by Joachim Bauch.)
-
+ o Fix a memory error when freeing a thread-enabled event base with registered events. (Spotted by Joachim Bauch.)
Changes in 2.0.1-alpha:
o free minheap on event_base_free(); from Christopher Layne
base->th_notify_fd[1] = -1;
}
- EVTHREAD_FREE_LOCK(base->th_base_lock);
-
/* Delete all non-internal events. */
for (ev = TAILQ_FIRST(&base->eventqueue); ev; ) {
struct event *next = TAILQ_NEXT(ev, ev_next);
evmap_io_clear(&base->io);
evmap_signal_clear(&base->sigmap);
+ EVTHREAD_FREE_LOCK(base->th_base_lock);
+
mm_free(base);
}