Include disabled methods in event_get_supported_methods() output.

Previously, events that were disabled using EVENT_NO* were left out of
event_get_supported_methods().  This was wrong, broke unit tests
(under some circumstances) and left the user with no good way to tell
which methods were actually compiled in.

Fixes bug 2821015.

svn:r1344
This commit is contained in:
Nick Mathewson 2009-07-14 19:19:45 +00:00
parent 043515bc52
commit 9fcd84d196
2 changed files with 1 additions and 3 deletions

View File

@ -43,7 +43,7 @@ Changes in 2.0.2-alpha:
o Mitigate a race condition when using socket bufferevents in multiple threads.
o Use AC_SEARCH_LIBS, not AC_CHECK_LIB to avoid needless library use.
o Do not allow event_del(ev) to return while that event's callback is executing in another thread. This fixes a nasty race condition.
o event_get_supported_methods() now lists methods that have been disabled with the EVENT_NO* environment options.
Changes in 2.0.1-alpha:
o free minheap on event_base_free(); from Christopher Layne

View File

@ -457,8 +457,6 @@ event_get_supported_methods(void)
/* populate the array with the supported methods */
for (k = 0, i = 0; eventops[k] != NULL; ++k) {
if (event_is_method_disabled(eventops[k]->name))
continue;
tmp[i++] = eventops[k]->name;
}
tmp[i] = NULL;