xref: /libevent-2.1.12/ChangeLog (revision 0eb39194)
1Changes in version 2.1.5-alpha (5 January 2015)
2
3
4 New APIs (evconnlistener)
5   o Provide support for SO_REUSEPORT through LEV_OPT_REUSABLE_PORT (b625361 Maciej Soltysiak)
6
7 Bugfixes (core)
8    o Fix use-after-free error in EV_CLOSURE_EVENT callback (3cc0eac John Ohl)
9    o Fix race caused by event_active (3c7d6fc vjpai)
10
11 Bugfixes (evbuffer)
12   o Fix evbuffer_peek() with len==-1 and start_at non-NULL. (ba59923)
13   o Consistently check for failure from evbuffer_pullup() (60f8f72)
14   o Fix evbuffer_peek() with len==-1 and start_at non-NULL. (fb7e76a)
15
16 Bugfixes (windows, IOCP)
17   o be async: avoid double close() (f133b86 Azat Khuzhin)
18
19 Bugfixes (bufferevents)
20   o Fix issue #127, double free for filterevents that use BEV_OPT_CLOSE_ON_FREE (2c82aa0 John Ohl)
21   o make bufferevent_getwatermark api more robust (a21e510 ufo2243)
22   o [Bugfix] fix bufferevent setwatermark suspend_read (b34e4ac ufo2243)
23   o bufferevent_openssl: reset fd_is_set when setfd with -1 is called (3da84c2 Azat Khuzhin)
24   o Fix compilation for older OpenSSL versions. (5c7282f Joakim Soderberg)
25
26 New APIs (evhttp)
27   o Add evhttp_connection_set_family() to set addrinfo->family for DNS requests (12c29b0 Azat Khuzhin)
28   o Implement interface that provides the ability to have an outbound evhttp_connection free itself once all requests have completed (2b9ec4c,10fe4f John Ohl)
29
30 New APIs (core)
31   o Implement new/free for struct evutil_monotonic_timer and export monotonic time functions (f2645f8 Andrea Shepard)
32
33 Bugfixes (evdns)
34   o Load hosts file on Windows. (a0b247c Vilmos Nebehaj)
35   o Don't truncate hosts file path on Windows. (d0dc861 Vilmos Nebehaj)
36   o Fix a crash in evdns related to shutting down evdns (9f39c88,e8fe749)
37   o evdns: avoid read-after-free in evdns_request_timeout_callback() (61262a0 Azat Khuzhin)
38   o Correctly handle allocation failures in evdns_getaddrinfo (6a53d15)
39   o evdns: fix EVDNS_BASE_DISABLE_WHEN_INACTIVE in case retransmit/retry (74d0eee Azat Khuzhin)
40   o evdns: add retry/reissue tests for EVDNS_BASE_DISABLE_WHEN_INACTIVE (3ca9d43 Azat Khuzhin)
41   o evdns: fail ns after we are failing/retrasmitting request (97c750d Azat Khuzhin)
42
43 Bugfixes (evhttp)
44   o http: reset connection before installing retry timer (fix http retries handling) (bc79cc5 Azat Khuzhin)
45
46
47 Testing
48   o regress_dns: fix leaks in getaddrinfo_async{,_cancel_stress} tests (2fdc5f2 Azat Khuzhin)
49   o test: add family argument for http_connection_test_() (177b8a7 Azat Khuzhin)
50   o test: add regress for evhttp_connection_set_family() with AF_INET and AF_UNSPEC (42aefeb Azat Khuzhin)
51   o test/http: add regress test for set family to AF_INET6 (3fbf3cc Azat Khuzhin)
52   o Update to a more recent tinytest_macros. (8da5a18)
53   o test/regress: add simplestsignal: to track reorder bugs separately (b897bef Azat Khuzhin)
54   o test/evbuffer_peek: add regress in case we have first buffer greater (e2d139d Azat Khuzhin)
55   o More evbuffer_peek() test cases (154006a)
56   o use correct tt macro for pointer compare (08c88ea)
57   o regress_buffer: fix 'memcmp' compare size (79800df Maks Naumov)
58   o Fix a use-after-free in unit tests. CID 752027 (3739057)
59   o Fix a dead-code warning in unit tests. CID 1193548 (c119f24)
60   o Use evutil_weakrand() in unit tests. (a677b72, 364c110)
61   o Use a more precise calculation for max in time-ratelim.c (ca5b5c7)
62   o Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from() (fb57b8b)
63   o Fix several memory leaks in the unit tests. (89c1a3b)
64   o Add test for evhttp_connection_free_on_completion (b0e9924 John Ohl)
65   o Fix annoying heisenbug in test-time.c (cb73704)
66
67 Sample code
68   o Make http-server.c output into good html5 (6d72bdc)
69   o Use FindClose for handle from FindFirstFile in http-server.c (6466e88)
70   o https-client: add -retries argument, for connection retries (d9da844 Azat Khuzhin)
71
72 Bugfixes (build)
73   o Add missing headerfile for cmake (15d90cc Trond Norbye)
74   o ignore one more test binary (b6593aa Michael Richardson)
75   o ignore config.cache/test-driver files (c83f333 Mike Frysinger)
76   o add a --disable-samples configure flag (0c492b3 Mike Frysinger)
77   o Add a few files created by "make verify" to .gitignore. (1a8295a Pierre Phaneuf)
78   o updates in cmake build (27bd9fa Sergey Nikulov)
79   o Fix cmake error when the Module path has more than one entry. (befbd13 Acer Yang)
80   o Fix CMake shared library build (e69d910 Nobuaki Sukegawa)
81   o Fix warnings when compiling with clang 3.5 (f5b4765 John Ohl)
82   o Fix mixed declarations and code (forbidden by ISO C90) (8afbdbc Thomas Bernard)
83
84 Bugfixes (miscellaneous)
85   o tree.h: drop duplicated content of tree.h (6193187 Azat Khuzhin)
86   o evdns: disable probing with EVDNS_BASE_DISABLE_WHEN_INACTIVE (610410b,ad0493e,fea86a6,d83b337,5ca9e97 Azat Khuzhin)
87   o [Bugfix] fix grammer error (3a4d249 ufo2243)
88   o Change return type of evutil_load_windows_system_library_ to HMODULE (f691389)
89   o Fix a c90 warning (76643dd)
90   o Fix a typo in a doxygen comment. Reported by 亦得. (be1aeff)
91   o remove trailing comma from enum (b361b8a Jean-Philippe Ouellet)
92
93 Bugfixes (FreeBSD)
94   o Handle ENOTCAPABLE from FreeBSD - this is returned if an event in the changelist is for an FD that has been closed. (6fd7394 Adrian Chadd)
95
96
97
98Changes in version 2.1.4-alpha (21 Mar 2014)
99
100 Libevent 2.1.4-alpha adds a number of new miscellaneous APIs to make
101 Libevent more useful, including support for early close detection with
102 epoll via EPOLLRDHUP, triggering bufferevent callbacks, adding more
103 evhttp callbacks, and more. There are also numerous bugfixes, including
104 a number for finalize-related issues from 2.1.3-alpha; and an
105 alternative (non-primary!) cmake-based build mechanism.
106
107 New APIs (core)
108   o Added event_base_get_num_events() (0fa107d Mobai Zhang)
109   o New event_base_active_by_fd API (865a142 Greg Hazel, 5c9da9a, 87fa2b0)
110   o Add event_base_active_by_signal by analogy (4865943)
111   o Add access to max event count stats (5173bef, efbd3dc, 26230a2
112     Andrew Sweeney)
113   o Implemented EV_CLOSED event for epoll backend
114     (EPOLLRDHUP). (b1b69ac Diego Giagio, 53d2793, 43ffcf6, dfe1e52
115     Marcin Juszkiewicz, ff26633 Joakim Soderberg, 3908a5e)
116
117 New APIs (evutil_secure_rng)
118   o Add evutil_secure_rng_set_urandom_device_file (2bbb5d7)
119
120 New APIs (bufferevents)
121   o Add function to fetch underlying ratelimit cfg (4b3d5af Mark Ellzey)
122   o Pass and return const for bufferevent_get_token_bucket_cfg (1c77fbb
123     Mark Ellzey)
124   o Add watermark introspection (4ce242b Ondřej Kuzník)
125   o Add an option to trigger bufferevent I/O callbacks (61ee18b Ondřej Kuzník)
126   o Add an option to trigger bufferevent event callbacks (a7384c7
127     Ondřej Kuzník)
128   o Clarifications in response to merge req. comments (bd41947 Ondřej
129     Kuzník)
130   o Minor optimizations on bufferevent_trigger options (a3172a4)
131
132 New APIs (evhttp)
133   o Add evhttp_connection_get_server(). (a7f82a3 Maxime Henrion)
134   o add a http default content type option (5a5acd9 Nicolas Martyanoff)
135   o http: implement new evhttp_connection_get_addr() api. (0c7f040 Azat
136     Khuzhin)
137   o Add a variant of evhttp_send_reply_chunk() with a callback on
138     evhttp_write_buffer() (8d8decf Julien BLACHE)
139   o Allow registering callback for parsing HTTP headers (b0bd7fe Balint Reczey)
140   o Provide on request complete callback facility (b083ca0 Andrew Sweeney)
141   o evhttp_request_set_on_complete_cb to be more specific about what
142     the function actually does and usage (da86dda Andrew Sweeney)
143   o Update unit test to make sure that the callback happens after the
144     output data is written (b85f398 Andrew Sweeney)
145
146 Features (evdns)
147   o bug fix for issues #293 evdns_base_load_hosts doesn't remove
148     outdated addresses (954d2f9, f03d353, 45eba6f Kuldeep Gupta)
149
150 Features: (cmake build support)
151   o Initial CMake commit. (e415196 Joakim Soderberg)
152   o Add all tests and benchmarks to CMake project. (e9fc014 Joakim Soderberg)
153   o More work on adding tests to CMake project (99c1dc3 Joakim Soderberg)
154   o Generate a dummy evconfig-private.h so things build
155     properly. (ce14def Joakim Soderberg)
156   o Link libm on unix platforms. (58fcd42 Joakim Soderberg)
157   o Added some GCC specific options. (19222e5 Joakim Soderberg)
158   o Use evutil_closesocket instead. (dbf2b51 Joakim Soderberg)
159   o Add copyright and licensing files for CMake modules. (c259d53
160     Joakim Soderberg)
161   o Only include WIN32 getopt where it is used. (9bbce0b Joakim Soderberg)
162   o Fix bench_cascade program on Windows. (78da644 Joakim Soderberg)
163   o Don't segfault on no found event backend. (8f2af50 Joakim Soderberg)
164   o Only test the event backends available on the system. (7ea4159
165     Joakim Soderberg)
166   o Added a "make verify" target. (e053c4f Joakim Soderberg)
167   o Fix the make "verify" target on Windows. (67e5d74 Joakim Soderberg)
168   o Get rid of deprecation warnings for OpenSSL on OSX 10.7+ (69c3516
169     Joakim Söderberg)
170   o Fix kqueue support. (a831f2f Joakim Söderberg)
171   o Added a test for testing if kqueue works with pipes. (2799b35
172     Joakim Söderberg)
173   o Change the BSD license from 4 to 3-clause. (86df3ed Joakim Soderberg)
174   o Minimum required python version is 2.4. (968e97b Joakim Soderberg)
175   o Get rid of unknown pragma warnings. (0ef1d04 Joakim Soderberg)
176   o Add a "make verify_coverage" target generation coverage
177     info. (f2483f8 Joakim Soderberg)
178   o Fix the "make verify" target on NetBSD (4ac086a Joakim Soderberg)
179   o Only look for ZLib when it is used (if tests are
180     included). (f780593 Joakim Soderberg)
181   o Added EVENT__ENABLE_GCC_WARNINGS, turns all warnings into
182     errors. (dd413bd Joakim Soderberg)
183   o Add CMake config and install targets. (f3446ed Joakim Soderberg)
184   o Fix typo (4b754df Joakim Soderberg)
185   o Some work on making it possible to simply do add_subdirectory() on
186     the project. (49ab363 Joakim Soderberg)
187   o Set USE_DEBUG=1 on EVENT__ENABLE_VERBOSE_DEBUG (fd42e70 Joakim Soderberg)
188   o Fix so that old nmake project still builds. (24d6466 Joakim
189     Soderberg)
190   o Rename README to README.md and use markdown to format. (d2bc39a
191     Joakim Soderberg)
192   o Update README with CMake build instructions. (604b8cc Joakim Soderberg)
193   o Clean up the README some. (8d4cb35 JoakimSoderberg)
194   o Forgotten headers for old nmake project compatability. (8697b99
195     Joakim Soderberg)
196   o Change all uses of WIN32 to _WIN32 (4e14395 Joakim Söderberg)
197   o Fix include bug. (2024467 Joakim Söderberg)
198   o Check if we're on OSX before disabling deprecation in le-proxy
199     (8b40a5b Joakim Söderberg)
200   o Fix broken autotools build. (ae1bd82 Joakim Söderberg)
201   o Disclaimerize cmake a little in the README (d03b5bf)
202   o Fix CMake compile when OpenSSL is disabled. (e423d42 Joakim
203     Söderberg)
204   o CMake: Get rid of python not found warning when regress tests
205     turned off. (d38d798 Joakim Söderberg)
206   o Fix https-client compilation on Windows. (d7be788 Joakim Soderberg)
207   o Guard against EVENT_NOWIN32 being set during testing. (f1715b4
208     Joakim Soderberg)
209   o Check for OSX when checking for clang. (e212c54 Joakim Soderberg)
210   o Added a Travis-CI configuration file. (8c0f0a9 Joakim Soderberg)
211   o Added -Qunused-arguments for clang on macosx (ed99d92 Trond Norbye)
212   o Rename event_extras to event_extra (a0dd5df Trond Norbye)
213   o Add option to build shared library (4545fa9 Trond Norbye)
214   o Add -Qunused-arguments for clang on macos (b56611d Trond Norbye)
215   o Add cmake-related files to .gitignore (e061321 Trond Norbye)
216   o Export event_extra not event_extras. (2b41bcf Joakim Söderberg)
217
218 Bugfixes (core)
219   o If evsel->del() fails, don't leave the evmap in an inconsistent
220     state (9b5a527 Maxime Henrion)
221   o Move event_debug_note_teardown_ before mm_free. (69b5c64)
222   o Check CLOCK_MONOTONIC_* at runtime if needed. (911abf3)
223   o Fix reinit of fds with EV_WRITE but not EV_READ. (ebfd8a8 maksqwe)
224   o Tweaked callbacks to prevent race condition
225     (https://github.com/libevent/libevent/issues/104) (40830f1, 2ea15ed
226     John Ohl)
227   o Move assert(ev) to before we use ev in EV_CLOSURE_EVENT_FINALIZE
228     case (9805972)
229
230 Bugfixes (evhttp)
231   o Fix a double close() bug in evhttp when the underlying bufferevent uses
232     BEV_OPT_CLOSE_ON_FREE. (31db8a0 Maxime Henrion)
233   o Fix an unlikely but possible error case for http connections (f22049e)
234   o Avoid racy bufferevent activation (5eb1788 Nate Rosenblum)
235
236 Bugfixes on 2.0 (Windows)
237   o Use windows vsnprintf fixup logic on all windows environments (e826f19)
238   o libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer)
239    (b8f5980 Frank Denis)
240
241 Bugfixes (evutil_secure_rng)
242   o When we seed from /proc/sys/kernel/random/uuid, count it as success
243     (e35b540)
244   o We should return after arc4random_buf() (1ea1f26 Makoto Kato)
245   o Avoid other RNG initialization FS reads when urandom file is
246     specified (9695e9c)
247   o Really remove RNG seeds from the stack (f5ced88)
248   o Fix another arc4random_buf-related warning (e64a2b0)
249
250 Bugfixes (bufferevents)
251   o Initialize async bufferevent timeout CBs unconditionally (af9b2a7)
252
253 Bugfixes (evdns)
254   o Checking request nameserver for NULL, before using it. (5c710c0
255     Belobrov Andrey)
256   o Fix SEGFAULT after evdns_base_resume if no nameservers
257     installed. (14971a8 Azat Khuzhin)
258   o Actually use the log facility for reporting evdns problems. (e1766a1)
259   o Fix SEGFAULT after evdns_base_resume if no nameservers
260     installed. (f8d7df8 Azat Khuzhin)
261   o fix for ServFail from RIPE Atlas release (62f596b Antony Antony)
262
263 Bugfixes (compilation)
264   o Fix test compilation with nmake: add the gdi.lib dependency (5ba8ab7)
265   o Whoops. It is gdi.lib, not gdi32.lib. (github issue #61) (8ab612e)
266   o Don't use return since return type is void and build error occurs
267     using clang (838161d Makoto Kato)
268   o Use void casts to suppress some "unchecked return value" warns (7080d55)
269   o rpcgen: Generate regress.gen.[c,h] in build rather than src dir
270     (243386c Ross Lagerwall)
271   o Fix a compiler warning when checking for arc4random_buf linker
272     breakage. (5cb3865)
273   o Fix 'make distcheck' by adding regress.gen.[ch] to DISTCLEANFILES
274    (239d834)
275
276   o Fix a c90 warning (c207682)
277   o Fix consts in WIN32-Code/getopt*.[ch] (57abb35)
278
279 Bugfixes (locks, synchronization)
280   o Missed lock acquire/release in event_base_cancel_single_callback_()
281     (d3d999a Azat Khuzhin)
282   o Fix locking in bufferevent_get_options_(). (dbc9cd4 Maxime Henrion)
283
284 Bugfixes (leaks)
285   o Avoid leaking segment mappings when offset is not a page multiple (d409514)
286
287 Testing
288   o Add tests for evdns_base_resume(). (1cd9ff5 Azat Khuzhin)
289   o Fix dns/leak_resume_send_err test. (7e876df Azat Khuzhin)
290   o Add checks for evhttp_connection_get_server() in unit
291     tests. (fbc323b Maxime Henrion)
292   o Fix a (failure-only) null dereference in the unit tests (1104d0b)
293   o Fix a logic error in test_evbuffer_freeze (7765884)
294   o Add missing check to test_evbuffer_file_segment_add_cleanup_cb (eba4506)
295   o Fix some crash-on-fail cases in DNS regression tests (87cd6f0)
296   o DNS tests: add a missing check (f314900)
297   o Finalize tests: add a missing check (82b6956)
298   o test_evutil_rtrim: add another missing check. (e193c95)
299   o regress_main: logging all if env EVENT_DEBUG_LOGGING_ALL isset
300     (611e28b Azat Khuzhin)
301   o regress_http: add tests for evhttp_connection_get_addr() (4dd500c
302     Azat Khuzhin)
303   o Update to the latest version of tinytest (7a80476)
304   o Heap-allocate zlib data structure in regress_zlib tests (4947c18)
305
306 Performance tweaks (core)
307   o Avoid redundant syscall to make a nonblocking socket nonblocking
308     (42c03da Maxime Henrion)
309   o Avoid redundant syscall if making a socket cloexec twice (1f29b18)
310   o Avoid redundant invocations of init_extension_functions for IOCP (3b77d62)
311
312 Documentation
313   o Document that arc4random is not a great cryptographic PRNG. (6e49696)
314   o Small doxygen tweaks (6e67b51)
315   o Try another doxygen tweak (ccf432b)
316   o Clarify event_base_loop exit conditions (031a803)
317   o Fix a typo (be7bf2c Ondřej Kuzník)
318   o Document deferred eventcb behaviour (13a9a02 Ondřej Kuzník)
319   o Typo fixes from Linus Nordberg (cec62cb, 8cd695b)
320   o Fix duplicate paragraph in evbuffer_ptr documentation (58408ee)
321
322 Code Improvements (coverity)
323   o Fix a pile of coverity warnings in the unit tests (867f401)
324   o Fix coverity warnings in benchmark tools. (ff7f739)
325   o Whoops; fix compilation in bench.c (544cf88)
326   o Remove spurious checks in evrpc.c error cases (coverity) (991b362)
327   o Fix a couple of compilation warnings in regress_http.c (860767e)
328   o Fix even more coverity warnings. (d240328)
329   o Stop checking for inet_aton; we don't use it. (f665d5c)
330   o Add an include to evrpc-internal to fix openbsd compilation warning
331     (5e161c6)
332
333 Cleanups
334   o Remove an unreachable return statement in minheap-internal.h (e639a9e)
335   o Refactor evmap_{io,signal}_active_() to tolerate bad inputs (974c60e)
336   o Fix needless bufferevent includes in evdns.c (254c04e)
337   o Fix a couple of "#ifdef WIN32" instances (88ecda3)
338   o Remove unneeded declaration in bufferevent-internal.h (4c8ebcd)
339
340 Sample code
341   o le-proxy: Fail more gracefully if opening listener fails (44b2491)
342   o http-server: drop uri_root from base_url in http-server. (6171e1c Azat Khuzhin)
343   o https-client: POST supported, args supported (c5887f7 Alexey Ozeritsky)
344   o https-client: code cleanup (29af65e Alexey Ozeritsky)
345   o https-client: Small tweaks to https-client.c (90786eb)
346   o https-client: Set hostname for SNI extension (by f69m) (d1976f8)
347   o https-client: add a cast to https-client.c (462e6b6)
348
349
350
351Changes in version 2.1.3-alpha (1 May 2013)
352
353 Libevent 2.1.3-alpha fixes various bugs, adds new unit tests, and cleans
354 up the code in a couple of places. It has a new callback in evhttp for
355 reporting errors during a request, a new feature for allowing evdns to
356 not keep the event_base looping when there are no requests inflight, and
357 example code for writing an https client.
358
359 Libevent 2.1.3-alpha also has an important new (experimental) event
360 finalization feature to allow safe event teardown in multithreaded
361 programs. This ought to fix the longstanding bug with deadlocks in
362 multithreaded use of SSL-based bufferevents that some people have been
363 experiencing since Libevent 2.0.
364
365
366 Core (event finalization)
367   o Implement event_finalize() and related functions to avoid certain
368     deadlocks (8eedeab)
369   o Use finalization feature so bufferevents can avoid deadlocks (02fbf68)
370   o Always run pending finalizers when event_base_free() is called (e9ebef8)
371   o Remove bufferevent_del_generic_timeout_cbs as now unused (4ea4c6a)
372   o More documentation for finalization feature (a800b91)
373   o Make the event_finalize* functions return an error code (5d11f4f)
374   o Mark the finalize stuff as experiemental in case it needs to
375     change (23e2e29)
376
377 Evdns
378   o evdns: New flag to make evdns not prevent the event loop from
379     exiting (6b7fa62 Azat Khuzhin)
380
381 Bugfixes (Core)
382   o Make event_remove_timer behave correctly with persistent timers (5623e80)
383   o Unit test for event_remove_timer with EV_PERSIST. (96150dd)
384   o Double-check next timeout when adding events (9443868 Nate Rosenblum)
385   o event_base_update_cache_time should be a no-op if the loop isn't
386     running (5e6fa2a)
387
388 Bugfixes (evhttp, crash fix, from 2.0)
389   o fix #73 and fix http_connection_fail_test to catch it (b618204 Greg Hazel)
390
391 Bugfixes (compilation and portability, from 2.0)
392   o Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled (7e45739)
393   o Fix missing AC_PROG_SED on older Autoconfs (9ab2b3f Tay Ray Chuan)
394   o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
395     (74d4c44 Kevin Bowling)
396   o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake
397     1.13 compat (817ea36)
398   o Rename configure.in to configure.ac to appease newer autoconfs (0c79787)
399   o Avoid using top_srcdir in TESTS: new automakes do not like this (a55514e)
400
401 Bugfixes (resource leaks/lock errors on error, from 2.0)
402   o Avoid leaking fds on evconnlistener with no callback set (69db261)
403   o Avoid double-close on getsockname error in evutil_ersatz_socketpair
404     (0a822a6)
405   o Fix a locking error in bufferevent_socket_get_dns_error. (0a5eb2e)
406
407 Documentation Fixes (from 2.0)
408   o Fix a mistake in evbuffer_remove() arguments in example http server code
409     (c322c20 Gyepi Sam)
410   o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
411
412 Documentation Fixes
413   o minor documentation typos (809586a Patrick Pelletier)
414   o Fix cut-and-paste err in whatsnew-2.1 (49905ac)
415   o Fix comment to refer to sample/include.am correctly (9e8cdf3 Sebastian
416     Hahn)
417   o Fix typo : Dispatching instead of Dispaching (0c2bacc Volker Lendecke)
418   o fix some hinky indentation in evhttp_make_request (80e220e Patrick
419     Pelletier)
420   o "buffer" spelling (a452811 Patrick Pelletier)
421   o Specify return behavior in header for evbuffer_pullup() in corner case
422     (cf8d1cd Dan Petro)
423   o Clarify an important point about event_base_foreach_event() (920a5e6)
424
425 Compilation Fixes/Tool Support
426   o avoid valgrind false positive by zeroing epoll_event (1258614 Patrick
427     Pelletier)
428   o Fix harmless clang enum warning (b452a43 Sebastian Hahn)
429   o remove all exes on "make clean", not just regress.exe (974bfa0 Patrick
430     Pelletier)
431   o Make --disable-libevent-regress work again (787fd74)
432   o Do not build strlcpy.c when it will have no code. (4914620)
433
434 Portability Fixes
435   o When EWOULDBLOCK is not EAGAIN, treat it as equivalent to it (bf7a0ff)
436   o Preliminary changes for Minix3. (0dda56a Nicholas Heath)
437   o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13
438     compat (bf278b)
439   o Avoid using $(top_srcdir) in TESTS. (2863c83)
440   o build test/test-script.sh on systems with a less-featureful $< (f935e21)
441   o Implement EVUTIL_ERR_IS_EAGAIN on windows. (42aaf4d)
442
443 Evhttp changes:
444   o Fix ipv6 support for http. When URL contain domain, not IP
445     address. (71e709c Azat Khuzhin)
446   o uri decode: fix for warning "use of uninitialised value" (64b6ece Azat
447     Khuzhin)
448   o uri decode: changed the test for the existence of the next character
449     (e1903e3 Azat Khuzhin)
450   o Move prototype of evhttp_decode_uri_internal() to http-internal.h
451     (de8101a Azat Khuzhin)
452   o Test: decoding just part of string with evhttp_decode_uri_internal()
453     (1367653 Azat Khuzhin)
454   o Add new error_cb for actual reporting of HTTP request errors. (7b07719
455     Azat Khuzhin)
456   o Add test for EVREQ_HTTP_REQUEST_CANCEL into http_cancel_test() (862c217
457     Azat Khuzhin)
458   o Drop extra header http_struct.h from regress_http.c (54cc800 Azat Khuzhin)
459
460 Testing
461   o Add regress test ipv6_for_domain. (9ec88bd Azat Khuzhin)
462   o Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug
463     mode (2fad0f3)
464   o Add a test with an active_later event at event_base_free time. (1c3147f)
465   o Make all tests pass under EVENT_DEBUG_MODE=1 (b1b054f)
466   o Add some verbose notes to bufferevent unit tests (9d893c9)
467   o New test for active_later->active transition on event_active (a153874)
468   o New tests for event_base_foreach_event() (0b096ef)
469   o Unit tests for event_base_gettimeofday_cached() and
470     event_base_update_cache_time() (30ea291)
471   o A test for event_get_assignment() (f09629e)
472   o More unit tests for initializing common timeouts. (d596739)
473   o Fix a bug in the new main/event_foreach test (702c9aa)
474
475 Windows:
476   o use FormatMessage for winsock errors (0c6ec5d, 2078e9b, 4ccdd53, c9ad3af
477     Patrick Pelletier)
478   o a program to print out the error strings for winsock errors (7296512
479     Patrick Pelletier)
480   o Fix a warning introduced in 0c6ec5d8 (eeb700c)
481   o Fix another warning introduced in 0c6ec5d8 (ed26561)
482
483 Examples (http)
484   o Add sample/https-client.c, an example of stacking evhttp as a client on
485     top of bufferevent_ssl. (be46c99 Catalin Patulea)
486   o use ${OPENSSL_LIBS} instead of -lssl -lcrypto (bf31fa5 Patrick Pelletier)
487   o https-client was putting newlines at 256-byte boundaries (42d7441 Patrick
488     Pelletier)
489   o better handling of OpenSSL errors (5754d96 Patrick Pelletier)
490   o use Debian's default root certificate location (aacd674 Patrick Pelletier)
491   o use iSECPartners code to validate hostname in certificate (64d9f16
492     Patrick Pelletier)
493   o avoid sign mismatch warning in openssl_hostname_validation.c (6021cb5
494     Patrick Pelletier)
495   o pull in wildcard matching code from cURL (4db9da6 Patrick Pelletier)
496   o Another tweak to https-client.c (95acdaa)
497   o Remove http_struct.h usage in sample/https-client.c (8a90a85)
498
499
500
501Changes in version 2.1.2-alpha (18 Nov 2012)
502
503 Libevent 2.1.2-alpha includes more portable for monotonic timers,
504 refactors much of Libevent's internal and external infrastructure,
505 closes some longstanding gaps in the interface, makde other
506 improvements.  Ths log below tries to organize features by rough area of
507 effect.  It omits a few commits which were pure bugfixes on other commits
508 listed below.  For more detail, see the git changelogs.  For more
509 insight, see the "whatsnew-2.1.txt" document included in the Libevent
510 2.1.2-alpha distribution.
511
512 Libevent 2.1.2-alpha also includes all changes made in 2.0.19-stable
513 through 2.0.21-stable inclusive.
514
515 Performance (core):
516   o Replace pipe-based notification with EVFILT_USER where possible. This
517     should make multithreaded programs on OSX and *BSD alert the main thread a
518     little faster. (53a07fe)
519   o Make th_base_lock nonrecursive. (9cd5acb)
520
521 New/Changed API Functions:
522   o New event_get_priority() function to return an event's priority (f90e255)
523   o Add a bufferevent_get_priority() function (bd39554)
524   o Add an event_base_loopcontinue() to tell Libevent to rescan for more
525     events right away (7d6aa5e)
526   o Add a new callback to get called on evbuffer_file_segment free
527     (e9f8feb yangacer, 64051b9)
528   o Expose event_base_foreach_event() as a public API. (84fd6d7 Roman
529      Puls, 232055e, ffe1643)
530   o Add an event_remove_timer() to remove timer on an event without
531     deleting it (e3b2e08)
532   o Make bufferevent_set_timeouts(bev, NULL, NULL) have plausible
533     semantics (9dee36b)
534   o Rename event_enable_lock_debuging() to ..._debugging(). (The old name
535     should still work.) (07e132e)
536   o Add missing implementation for event_enable_debug_logging (3b3e21d)
537
538 PORTABLE MONOTONIC TIMERS:
539
540   Libevent 2.1.2 includes internal support for monotonic timers on
541   (nearly) all supported platforms, including Windows, and OSX.  Libevent
542   applications should now be more resilient to jumps forwards or backwards
543   in the system clock.  Also, on Linux systems with epoll, we now
544   optionally support microsecond-level timeouts (whereas epoll only
545   supports millisecond-precision timeouts).
546
547   o Use mach_absolute_time() for monotonic clock support on OSX. (b8fd6f9)
548   o Do not track use_monotonic field when is no monotonic clock (cb653a0)
549   o EVENT_BASE_FLAG_PRECISE_TIMER indicates we want fine timer precision
550     (ddd69d3)
551   o On Linux, use CLOCK_MONOTONIC_COARSE by default (55780a7)
552   o Implement a GetTickCount-based monotonic timer for Windows (d5e1d5a)
553   o Refactor monotonic timer handling into a new type and set of
554     functions; add a gettimeofday-based ratcheting implementation (f5e4eb0)
555   o Add EVENT_PRECISE_TIMER environment var for selecting precise-but-slow
556     timer (a2598ec)
557   o Implement fast/precise monotonic clocks on Windows (2c47045)
558   o Simple unit tests for monotonic timers (630f077)
559   o Improve the monotonic-time unit test: make it check the step size (7428c78)
560   o When PRECISE_TIMERS is set with epoll, use timerfd for microsecond
561     precision (26c7582)
562   o Split out time-related evutil functions into a new evutil_time.c (c419485)
563   o Split out time-related prototypes into time-internal.h (71bca50)
564   o Add evutil_time.obj to Makefile.nmake (0ba0683)
565   o Avoid giving a spurious warning when timerfd support is unavailable
566     (1aaf9f0 Dave Hart)
567   o Make test_evutil_monotonic a little more tolerant (def3b83)
568   o Avoid unused-var warning on systems with clock_gettime but without
569     CLOCK_MONOTONIC_COARSE (9be5468)
570
571EVENT_BASE_ONCE LEAKS:
572   If a callback added by event_base_once() is never invoked, Libevent no
573   longer leaks internal memory.
574
575   o Free dangling event_once objects on event_base_free() (c17dd59)
576   o Add a unit test in which an event is created with event_base_once()
577     but never fires (4343edf)
578
579TESTING SUPPORT, FIXES AND IMPROVEMENTS:
580
581   Libevent now disables by default its unit tests that would touch the
582   network, or that tend to fail on heavily-loaded systems.  To re-enable
583   them, invoke the ./test/regress program with the @all alias.
584
585   o Simplify test.sh code significantly. (9b856fd Ross Lagerwall)
586   o Make all tests that hit the network disabled by default (f2cea87)
587   o Avoid a resource leak on error in http client benchmark (ea92fba)
588   o Update to latest tinytest (911b4f0349377) (ef7c4f7)
589   o Avoid (unlikely) overflow in bench_httpclient.c (5671033)
590   o Shave 700 msec off the persistent_timeout_jump test (21205b8)
591   o Check return value of write() in regress.c (c8009d2)
592   o Make load-dependent monotonic timer tests off-by-default (2b6fe8b)
593   o Add deferred_cb_skew to list of timing-dependent tests (34c8f31)
594   o Avoid test -e; older shs don't have one. (f1bd938)
595   o Fix renegotiation test to work around openssl 1.0.1 bug (c2f3086)
596   o Fix a couple of compile warnings in the unit tests (5a9a014)
597
598MISC:
599   o Change evutil_weakrand_() to avoid platform random() (e86af4b Nicholas
600     Marriott, 3aa4415)
601
602INFRASTRUCTURE (Active-later events):
603   As a simplification and optimization to Libevent's "deferred callback"
604   logic (introduced in 2.0 to avoid callback recursion), Libevent now
605   treats all of its deferrable callback types using the same logic it uses
606   for active events.  Now deferred events no longer cause priority
607   inversion, no longer require special code to cancel them, and so on.
608
609   o Refactor the callback part of an event into its own event_callback
610     type (cba59e5)
611   o Add "active later" event_callbacks to supersede deferred (745a63d)
612   o event_base_assert_ok: check value of event_active_count for
613     correctness (fec8bae)
614   o Replace deferred_cbs with event_callback-based implementation. (ae2b84b)
615   o Replace more deferred_cb names with event_callback (a4079aa)
616   o Give event_base_process_active a single exit path (581b5be)
617   o Restore our priority-inversion-prevention code with deferreds (c0e425a)
618   o Refactor event_persist_closure: raise and extract some common logic
619     (bec22b4)
620   o Remove the unused bits from EVLIST_ALL (9889a3d)
621||||||| merged common ancestors
622Changes in version 2.0.22-stable (?? Dec 2013)
623
624 (As of 3b77d62829c4393bda6f9105a5d3b73b48a64b71.)
625
626BUGFIXES (evhttp)
627 o fix #73 and fix http_connection_fail_test to catch it (crash fix) (b618204 Greg Hazel)
628 o Avoid racy bufferevent activation (5eb1788 Nate Rosenblum)
629
630BUGFIXES (compilation and portability)
631 o Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled (7e45739)
632 o Fix missing AC_PROG_SED on older Autoconfs (9ab2b3f Tay Ray Chuan)
633 o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5) (74d4c44 Kevin Bowling)
634 o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat (817ea36)
635 o Rename configure.in to configure.ac to appease newer autoconfs (0c79787)
636 o Avoid using top_srcdir in TESTS: new automakes do not like this (a55514e)
637 o Use windows vsnprintf fixup logic on all windows environments (e826f19)
638 o Fix a compiler warning when checking for arc4random_buf linker breakage. (5cb3865)
639 o Fix another arc4random_buf-related warning (e64a2b0)
640
641BUGFIXES (resource leaks/lock errors on error)
642 o Avoid leaking fds on evconnlistener with no callback set (69db261)
643 o Avoid double-close on getsockname error in evutil_ersatz_socketpair (0a822a6)
644 o Fix a locking error in bufferevent_socket_get_dns_error. (0a5eb2e)
645 o libevent/win32_dealloc() : fix sizeof(pointer) vs sizeof(*pointer) (b8f5980 Frank Denis)
646
647BUGFIXES (miscellaneous)
648 o Avoid other RNG initialization FS reads when urandom file is specified (9695e9c, bb52471)
649 o Avoid redundant invocations of init_extension_functions for IOCP (3b77d62)
650
651BUFGIXES (evdns)
652 o Checking request nameserver for NULL, before using it. (5c710c0 Belobrov Andrey)
653 o Fix SEGFAULT after evdns_base_resume if no nameservers installed. (f8d7df8 Azat Khuzhin)
654
655BUGFIXES (evutil_secure_random)
656 o When we seed from /proc/sys/kernel/random/uuid, count it as success (e35b540)
657 o Document that arc4random is not a great cryptographic PRNG. (6e49696)
658 o Add evutil_secure_rng_set_urandom_device_file (2bbb5d7)
659 o Really remove RNG seeds from the stack (f5ced88)
660
661
662DOCUMENTATION FIXES
663 o Fix a mistake in evbuffer_remove() arguments in example http server code (c322c20 Gyepi Sam)
664 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
665
666
667
668Changes in version 2.0.21-stable (18 Nov 2012)
669BUGFIXES:
670 o ssl: Don't discard SSL read event when timeout and read come close together (576b29f)
671 o ssl: Stop looping in "consider_reading" if reading is suspended. (f719b8a Joachim Bauch)
672 o ssl: No need to reserve space if reading is suspended. (1acf2eb Joachim Bauch)
673 o dns: Avoid a memory-leak on OOM in evdns. (73e85dd, f2bff75 George Danchev)
674 o build: Use python2 rather than python (0eb0109 Ross Lagerwall)
675 o build: Compile without warnings on mingw64 (94866c2)
676 o build: Fix compilation on mingw64 with -DUSE_DEBUG (62bd2c4)
677 o build: Make rpcgen_wrapper.sh work on systems without a "python2" binary (f3009e4)
678 o iocp: Close IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set (cb853ea Juan Pablo Fernandez)
679 o core: Avoid crash when event_pending() called with no event_base set on event (e3cccf3)
680 o misc: remove stray 'x' so print_err will compile when uncommented (ac35650 Patrick Pelletier)
681 o tests: Fix renegotiation test to work around openssl 1.0.1 bug (c2f3086)
682 o tests: Warn when openssl version in unit test mismatches compiled version. (ac009f9)
683
684
685Changes in version 2.0.20-stable (23 Aug 2012)
686BUGFIXES:
687 o core: Make event_pending() threadsafe. (be7a95c Simon Liu)
688 o win32: avoid crash when waiting forever on zero fds. (160e58b)
689 o evhttp: Fix a memory leak on error in evhttp_uriencode (11c8b31)
690 o evbuffer: Avoid possible needless call to writev. Found by coverity. (6a4ec5c)
691 o evdns: memset sockaddr_in before using it. Found by coverity. (a1a0e67)
692 o evhttp: Check more setsockopt return values when binding sockets. Found by coverity (a0912e3)
693 o evdns: Avoid segfault on weird timeout during name lookup. (dc32077 Greg Hazel)
694 o bufferevent_ssl: Correctly invoke callbacks when a SSL bufferevent reads some and then blocks. (606ac43)
695
696
697PORTABILITY FIXES:
698 o check for arc4random_buf at runtime, on OS X (bff5f94 Greg Hazel)
699 o Correctly check for arc4random_buf (fcec3e8 Sebastian Hahn)
700 o Add explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED) (ca80ea6)
701
702BUILD FIXES:
703 o Add GCC annotations so that the vsprintf functions get checked properly (117e327)
704 o Fix an unused variable warning on *BSD. (c0720c1)
705
706UNIT TEST FIXES:
707 o Fix a couple of memory leaks (found with Valgrind). (3b2529a Ross Lagerwall)
708 o Remove deadcode in http regression tests. Found by coverity. (5553346)
709 o Fix possible uninitialized read in dns regression tests. Found by coverity. (2259777)
710 o Set umask before calling mkstemp in unit tests. Found by coverity (f1ce15d)
711 o Fix various check-after-dereference issues in unit tests: found by coverity (4f3732d)
712 o Fix resource leaks in the unit tests; found by coverity (270f279)
713 o Add some missing null checks to unit tests; found by coverity (f021c3d)
714 o Avoid more crashes/bad calls in unit tests; found by coverity (3cde5bf)
715 o Remove unused variable; spotted by coverity (6355b2a)
716 o Add checks to various return values in unit tests. Found by coverity (b9e7329)
717 o Move assignment outside tt_assert in ssl unit tests. Appeases coverity. (a2006c0)
718
719
720
721Changes in version 2.0.19-stable (3 May 2012)
722BUGFIXES (CORE):
723 o Refactor event_persist_closure: raise and extract some common logic (bec22b4)
724 o If time has jumped so we'd reschedule a periodic event in the past, schedule it for the future instead (dfd808c)
725 o If a higher-priority event becomes active, don't continue running events of the current priority. (2bfda40)
726
727BUGFIXES (SSL):
728 o Fixed potential double-readcb execution with openssl bufferevents. (4e62cd1 Mark Ellzey)
729
730BUGFIXES (DNS):
731 o Cancel a probe request when the server is freed, and ignore cancelled probe callbacks (94d2336 Greg Hazel)
732 o Remove redundant DNS_ERR_CANCEL check, move comment (46b8060 Greg Hazel)
733 o When retransmitting a timed-out DNS request, pick a fresh nameserver. (3d9e52a)
734
735DOCUMENTATION FIXES:
736 o Fix a typo in the bufferevent documentation (98e9119)
737 o Add missing ) to changelog; spotted by rransom (4c7ee6b)
738 o Fix the website URL in the readme (f775521)
739
740COMPILATION FIXES:
741 o Fix a compilation error with MSVC 2005 due to use of mode_t (336dcae)
742 o Configure with gcc older than 2.95 (4a6fd43 Sebastian Hahn)
743 o Generate event-config.h with a single sed script (30b6f88 Zack Weinberg)
744
745FORWARD-COMPATIBILITY:
746 o Backport: provide EVENT_LOG_* names, and deprecate _EVENT_LOG_* (d1a03b2)
747
748TESTING/DEBUGGING SUPPORT:
749 o dns-example.c can now take a resolv.conf file on the commandline (6610fa5)
750 o Make some evdns.c debug logs more verbose (d873d67)
751 o Work-around a stupid gcov-breaking bug in OSX 10.6 (b3887cd)
752
753
754
755Changes in version 2.0.18-stable (22 Mar 2012)
756BUGFIXES (core):
757 o Make uses of open() close-on-exec safe by introducing an internal evutil_open_closeonexec. (d2b5f72 Ross Lagerwall, 03dce42)
758
759BUGFIXES (kqueue):
760 o Properly zero the kevent in kq_setup_kevent() (c2c7b39 Sebastian Hahn)
761
762BUILD FIXES:
763 o Added OPENSSL_LDFLAGS env variable which is appended to SSL checks. (9278196 Mark Ellzey)
764 o Changed OPENSSL_LDFLAGS to OPENSSL_LIBADD (2d67b63 Mark Ellzey)
765 o Don't do clang version detection when disabling some flags (083296b Sebastian Hahn)
766
767BUGFIXES (dns):
768 o Stop crashing in evdns when nameserver probes give a weird error (bec5068)
769
770
771Changes in version 2.0.17-stable (10 Feb 2012)
772
773BUGFIXES (core):
774 o Be absolutely sure to clear pncalls before leaving event_signal_closure (11f36a5)
775 o check for sysctl before we use it (358c745 Mike Frysinger)
776 o Remove bogus casts of socket to int before calling ev_callback (f032516)
777 o Make evconnlistener work around bug in older Linux when getting nmapped (ecfc720)
778 o Fix a list corruption bug when using event_reinit() with signals present (6e41cdc)
779 o Fix a fd leak in event_reinit() (3f18ad1)
780 o Do a memberwise comparison of threading function tables (c94a5f2 Nate R)
781 o Use C-style comments in C source files (for compatibility with compilers such as xlc on AIX). (d84d917 Greg Hewgill)
782 o Avoid crash when freeing event_iocp and using event_set_mem_functions (19715a6)
783 o In the kqueue backend, do not report EBADF as an EV_READ (5d7bfa1 Nicholas Marriott)
784
785BUGFIXES (evbuffer and bufferevents):
786 o Fix behavior of evbuffer_peek(buf,-1,NULL,NULL,0) (c986f23 Zack Weinberg)
787 o Loop on filtering SSL reads until we are blocked or exhausted. (5b4b812)
788
789BUGFIXES (evhttp):
790 o Force strict validation of HTTP version in response. (790f6b3 Catalin Patulea)
791
792BUGFIXES (evdns):
793 o evdns: fix a bug in circular-queue implementation (d6094b1)
794
795BUILD FIXES:
796 o Fix a silly compilation error with the sun compiler (1927776 Colin Watt)
797 o Suppress a gcc warning from ignoring fwrite return in http-sample.c (7206e8c)
798
799DOCUMENTATION FIXES:
800 o Slightly clarify evbuffer_peek documentation (7bbf6ca)
801 o Update copyright notices to 2012 (e49e289)
802
803NEW APIS:
804 o Backport evhttp_connection_get_bufferevent to Libevent 2.0 (da70fa7 Arno Bakker)
805
806TESTS AND TEST FIXES:
807 o Fix a race condition in the dns/bufferevent_connect_hostname test. (cba48c7)
808 o Add function to check referential integrity of an event_base (27737d5)
809 o Check event_base correctness at end of each unit test (3312b02)
810 o Workaround in the unit tests for an apparent epoll bug in Linux 3.2 (dab9187)
811 o Better workaround for Linux 3.2 edge-triggered epoll bug (9f9e259)
812
813Changes in version 2.0.16-stable (18 Nov 2011)
814BUGFIXES (core):
815 o More detailed message in case of libevent self-debugging failure. (9e6a4ef Leonid Evdokimov)
816 o epoll: close fd on alloc fail at initialization (1aee718 Jamie Iles)
817 o Fix compile warning from saying event2/*.h inside a comment (447b0ba)
818 o Warn when unable to construct base because of failing make_base_notifiable (4e797f3)
819 o Don't try to make notifiable event_base when no threading fns are configured (e787413)
820
821BUGFIXES (evbuffer):
822 o unit test for remove_buffer bug (90bd620 Greg Hazel)
823 o Fix an evbuffer crash in evbuffer_remove_buffer() (c37069c)
824
825BUGFIXES (bufferevent_openssl):
826 o Refactor amount-to-read calculations in buffervent_ssl consider_reading() (a186e73 Mark Ellzey)
827 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
828 o Avoid spinning on OpenSSL reads (2aa036f Mark Ellzey)
829
830BUGFIXES (dns)
831 o Empty DNS reply with OK status is another way to say NODATA. (21a08d6 Leonid Evdokimov)
832
833TESTING:
834 o Tests for 94fba5b and f72e8f6 (d58c15e Leonid Evdokimov)
835 o Test for commit aff6ba1 (f7841bf Leonid Evdokimov)
836 o Style and comment tweaks for dns/leak* tests (5e42202)
837 o improve test to remove at least one buffer from src (7eb52eb Greg Hazel)
838
839DOCUMENTATION:
840 o Add note about evhttp_send_reply_end to its doxygen (724bfb5)
841 o Update copyright dates to 2011. (3c824bd)
842 o Fix typo in whatsnew-2.0.txt (674bc6a Mansour Moufid)
843 o Improve win32 behavior of dns-sample.c code (a3f320e Gisle Vanem)
844
845
846
847Changes in version 2.0.15-stable (12 Oct 2011)
848BUGFIXES (DNS):
849 o DNS: add ttl for negative answers using RFC 2308 idea. (f72e8f6 Leonid Evdokimov)
850 o Add DNS_ERR_NODATA error code to handle empty replies. (94fba5b Leonid Evdokimov)
851
852BUFGIXES (bufferevents and evbuffers):
853 o Make evbuffer callbacks get the right n_added value after evbuffer_add (1ef1f68 Alex)
854 o Prefer mmap to sendfile unless a DRAINS_TO_FD flag is set. Allows add_file to work with SSL. (0ba0af9)
855
856BUGFIXES (event loop):
857 o When a signal callback is activated to run multiple times, allow event_base_loopbreak to work even before they all have run. (4e8eb6a)
858
859DOCUMENTATION FIXES:
860 o Fix docstring in dns.h (2b6eae5 Leonid Evdokimov)
861 o refer to non-deprecated evdns functions in comments (ba5c27d Greg Hazel)
862
863BUILD AND TESTING FIXES:
864 o le-proxy and regress depend on openssl directly (9ae061a Sergey Avseyev)
865 o Use _SOURCES, not _sources, in sample/Makefile.am (7f82382)
866 o Fixed compiler warnings for unchecked read/write calls. (c3b62fd Mark Ellzey)
867 o Make write-checking fixes use tt_fail_perror (2b76847)
868 o Fix some "value never used" warnings with gcc 4.6.1 (39c0cf7)
869
870
871
872Changes in version 2.0.14-stable (31 Aug 2011)
873BUGFIXES (bufferevents and evbuffers):
874 o Propagate errors on the underlying bufferevent to the user. (4a34394 Joachim Bauch)
875 o Ignore OpenSSL deprecation warnings on OS X (5d1b255 Sebastian Hahn)
876 o Fix handling of group rate limits under 64 bytes of burst (6d5440e)
877 o Solaris sendfile: correctly detect amount of data sent (643922e Michael Herf)
878 o Make rate limiting work with common_timeout logic (5b18f13)
879 o clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes (54f7e61 Joachim Bauch)
880
881BUGFIXES (IOCP):
882 o IOCP: don't launch reads or writes on an unconnected socket (495c227)
883 o Make IOCP rate-limiting group support stricter and less surprising. (a98da7b)
884 o Have test-ratelim.c support IOCP (0ff2c5a)
885 o Make overlapped reads result in evbuffer callbacks getting invoked (6acfbdd)
886 o Correctly terminate IO on an async bufferevent on bufferevent_free (e6af35d)
887
888BUGFIXES (other):
889 o Fix evsig_dealloc memory leak with debugging turned on. (9b724b2 Leonid Evdokimov)
890 o Fix request_finished memory leak with debugging turned on. (aff6ba1 Leonid Evdokimov)
891
892BUILD AND TESTING FIXES:
893 o Allow OS-neutral builds for platforms where some versions have arc4random_buf (b442302 Mitchell Livingston)
894 o Try to fix 'make distcheck' errors when building out-of-tree (04656ea Dave Hart)
895 o Clean up some problems identified by Coverity. (7c11e51 Harlan Stenn)
896
897
898Changes in version 2.0.13-stable (18 Jul 2011)
899BUGFIXES
900 o Avoid race-condition when initializing global locks (b683cae)
901 o Fix bug in SSL bufferevents backed by a bev with a write high-watermarks (e050703 Joachim Bauch)
902 o Speed up invoke_callbacks on evbuffers when there are no callbacks (f87f568 Mark Ellzey)
903 o Avoid a segfault when all methods are disabled or broken (27ce38b)
904 o Fix incorrect results from evbuffer_search_eol(EOL_LF) (4461f1a)
905 o Add some missing checks for mm_calloc failures (89d5e09)
906 o Replace an assertion for event_base_free(NULL) with a check-and-warn (09fe97d)
907 o Report kqueue ebadf, epipe, and eperm as EV_READ events (1fd34ab)
908 o Check if the `evhttp_new_object' function in `http.c' returns NULL. (446cc7a Mansour Moufid)
909 o Use the correct printf args when formatting size_t (3203f88)
910 o Complain if the caller tries to change threading cbs after setting them (cb6ecee)
911
912DOCUMENTATION FIXES AND IMPROVEMENTS
913 o Revise the event/evbuffer/bufferevent doxygen for clarity and accuracy (2888fac)
914 o Update Doxyfile to produce more useful output (aea0555)
915
916TEST FIXES
917 o Fix up test_evutil_snprintf (caf695a)
918 o Fix tinytest invocation from windows shell (57def34 Ed Day)
919
920BUILD FIXES
921 o Use AM_CPPFLAGS in sample/Makefile.am, not AM_CFLAGS (4a5c82d)
922 o Fix select.c compilation on systems with no NFDBITS (49d1136)
923 o Fix a few warnings on OpenBSD (8ee9f9c Nicholas Marriott)
924 o Don't break when building tests from git without python installed (b031adf)
925 o Don't install event_rpcgen.py when --disable-libevent-install is used (e23cda3 Harlan Stenn)
926 o Fix AIX build issue with TAILQ_FOREACH definition (e934096)
927
928
929Changes in version 2.0.12-stable (4 Jun 2011)
930BUGFIXES
931 o Fix a warn-and-fail bug in kqueue by providing kevent() room to report errors (28317a0)
932 o Fix an assert-inducing fencepost bug in the select backend (d90149d)
933 o Fix failing http assertion introducd in commit 0d6622e (0848814 Kevin Ko)
934 o Fix a bug that prevented us from configuring IPv6 nameservers. (74760f1)
935 o Prevent size_t overflow in evhttp_htmlescape. (06c51cd Mansour Moufid)
936 o Added several checks for under/overflow conditions in evhttp_handle_chunked_read (a279272 Mark Ellzey)
937 o Added overflow checks in evhttp_read_body and evhttp_get_body (84560fc Mark Ellzey)
938
939DOCUMENTATION:
940 o Add missing words to EVLOOP_NONBLOCK documentation (9556a7d)
941
942BUILD FIXES
943 o libssl depends on libcrypto, not the other way around. (274dd03 Peter Rosin)
944 o Libtool brings in the dependencies of libevent_openssl.la automatically (7b819f2 Peter Rosin)
945 o Use OPENSSL_LIBS in Makefile.am (292092e Sebastian Hahn)
946 o Move the win32 detection in configure.in (ceb03b9 Sebastian Hahn)
947 o Correctly detect openssl on windows (6619385 Sebastian Hahn)
948 o Fix a compile warning with zlib 1.2.4 and 1.2.5 (5786b91 Sebastian Hahn)
949 o Fix compilation with GCC 2, which had no __builtin_expect (09d39a1 Dave Hart)
950 o Fix new warnings from GCC 4.6 (06a714f)
951 o Link with -lshell32 and -ladvapi32 on Win32. (86090ee Peter Rosin)
952 o Make the tests build when OpenSSL is not available. (07c41be Peter Rosin)
953 o Bring in the compile script from automake, if needed. (f3c7a4c Peter Rosin)
954 o MSVC does not provide S_ISDIR, so provide it manually. (70be7d1 Peter Rosin)
955 o unistd.h and sys/time.h might not exist. (fe93022 Peter Rosin)
956 o Make sure TINYTEST_LOCAL is defined when building tinytest.c (8fa030c Peter Rosin)
957 o Fix winsock2.h #include issues with MSVC (3d768dc Peter Rosin)
958 o Use evutil_gettimeofday instead of relying on the system gettimeofday. (0de87fe Peter Rosin)
959 o Always use evutil_snprintf, even if OS provides it (d1b2d11 Sebastian Hahn)
960 o InitializeCriticalSectionAndSpinCount requires _WIN32_WINNT >= 0x0403. (816115a Peter Rosin)
961 o cygwin: make it possible to build DLLs (d54d3fc)
962
963
964
965Changes in version 2.0.11-stable (27 Apr 2011)
966  [Autogenerated from the Git log, sorted and cleaned by hand.]
967BUGFIXES:
968 o Fix evport handling of POLLHUP and POLLERR (b42ce4b)
969 o Fix compilation on Windows with NDEBUG (cb8059d)
970 o Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports (0144886 Trond Norbye)
971 o Detect and handle more allocation failures. (666b096 Jardel Weyrich)
972 o Use event_err() only if the failure is truly unrecoverable. (3f8d22a Jardel Weyrich)
973 o Handle resize failures in the select backend better. (83e805a)
974 o Correctly free selectop fields when select_resize fails in select_init (0c0ec0b)
975 o Make --enable-gcc-warnings a no-op if not using gcc (3267703)
976 o Fix a type error in our (unused) arc4random_stir() (f736198)
977 o Correctly detect and stop non-chunked http requests when the body is too long (63a715e)
978 o Have event_base_gettimeofday_cached() always return wall-clock time (a459ef7)
979 o Workaround for http crash bug 3078187 (5dc5662 Tomash Brechko)
980 o Fix incorrect assertions and possible use-after-free in evrpc_free() (4b8f02f Christophe Fillot)
981 o Reset outgoing http connection when read data in idle state. (272823f Tomash Brechko)
982 o Fix subtle recursion in evhttp_connection_cb_cleanup(). (218cf19 Tomash Brechko)
983 o Fix the case when failed evhttp_make_request() leaved request in the queue. (0d6622e Tomash Brechko)
984 o Fix a crash bug in evdns server circular list code (00e91b3)
985 o Handle calloc failure in evdns. (Found by Dave Hart) (364291e)
986 o Fix a memory leak on win32 socket->event map. (b4f89f0)
987 o Add a forgotten NULL check to evhttp_parse_headers (12311ff Sebastian Hahn)
988 o Fix possible NULL-deref in evdns_cancel_request (5208544 Sebastian Hahn)
989
990PORTABILITY:
991 o Fall back to sscanf if we have no other way to implement strtoll (453317b)
992 o Build correctly on platforms without sockaddr_storage (9184563)
993 o Try to build correctly on platforms with no IPv6 support (713c254)
994 o Build on systems without AI_PASSIVE (cb92113)
995 o Fix http unit test on non-windows platforms without getaddrinfo (6092f12)
996 o Do not check for gethostbyname_r versions if we have getaddrinfo (c1260b0)
997 o Include arpa/inet.h as needed on HPUX (10c834c Harlan Stenn)
998 o Include util-internal.h as needed to build on platforms with no sockaddr_storage (bbf5515 Harlan Stenn)
999 o Check for getservbyname even if not on win32. (af08a94 Harlan Stenn)
1000 o Add -D_OSF_SOURCE to fix hpux builds (0b33479 Harlan Stenn)
1001 o Check for allocation failures in apply_socktype_protocol_hack (637d17a)
1002 o Fix the check for multicast or broadcast addresses in evutil_check_interfaces (1a21d7b)
1003 o Avoid a free(NULL) if out-of-memory in evdns_getaddrinfo. Found by Dave Hart (3417f68)
1004
1005DEFENSIVE PROGRAMMING:
1006 o Add compile-time check for AF_UNSPEC==PF_UNSPEC (3c8f4e7)
1007
1008BUGS IN TESTS:
1009 o Fix test.sh output on solaris (b4f89b6 Dave Hart)
1010 o Make test-eof fail with a timeout if we never get an eof. (05a2c22 Harlan Stenn)
1011 o Use %s with printf in test.sh (039b9bd)
1012 o Add an assert to appease clang's static analyzer (b0ff7eb Sebastian Hahn)
1013 o Add a forgotten return value check in the unit tests (3819b62 Sebastian Hahn)
1014 o Actually send NULL request in http_bad_request_test (b693c32 Sebastian Hahn)
1015 o add some (void) casts for unused variables (65707d7 Sebastian Hahn)
1016 o Refactor test_getaddrinfo_async_cancel_stress() (48c44a6 Sebastian Hahn)
1017 o Be nice and "handle" error return values in sample code (4bac793 Sebastian Hahn)
1018 o Check return value of evbuffer_add_cb in tests (93a1abb Sebastian Hahn)
1019 o Remote some dead code from dns-example.c (744c745 Sebastian Hahn)
1020 o Zero a struct sockaddr_in before using it (646f9fe Sebastian Hahn)
1021
1022BUILD FIXES:
1023 o Fix warnings about AC_LANG_PROGRAM usage (f663112 Sebastian Hahn)
1024 o Skip check for zlib if we have no zlib.h (a317c06 Harlan Stenn)
1025 o Fix autoconf bracket issues; make check for getaddrinfo include netdb.h (833e5e9 Harlan Stenn)
1026 o Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am (9c469db Dave Hart)
1027 o Fix make distcheck & installation of libevent 1 headers (b5a1f9f Dave Hart)
1028 o Fix compilation under LLVM/clang with --enable-gcc-warnings (ad9ff58 Sebastian Hahn)
1029
1030FEATURES:
1031 o Make URI parser able to tolerate nonconformant URIs. (95060b5)
1032
1033DOCUMENTATION:
1034 o Clarify event_set_mem_functions doc (926f816)
1035 o Correct evhttp_del_accept_socket documentation on whether socket is closed (f665924)
1036 o fix spelling mistake in whatsnew-2.0.txt (deb2f73)
1037 o Fix sample/http-server ipv6 fixes (eb692be)
1038 o Comment internal headers used in sample code. (4eb281c)
1039 o Be explicit about how long event loops run in event.h documentation (f95bafb)
1040 o Add comment to configure.in to explain gc-sections test logic (c621359)
1041 o Fix a couple of memory leaks in samples/http-server.c. Found by Dave Hart. (2e9f665)
1042
1043
1044
1045BUILD IMPROVEMENTS:
1046 Libevent 2.1.2-alpha modernizes Libevent's use of autotools, and makes
1047 numerous other build system. Parallel builds should be faster, and all
1048 builds should be quieter.
1049
1050   o Split long lists in Makefile.am into one-item-per-line (2711cda)
1051   o Remove unnecessary code in configure.in. (e65914f Ross Lagerwall)
1052   o attempt to support OpenSSL in Makefile.nmake (eba0eb2 Patrick Pelletier)
1053   o Use newer syntax for autoconf/automake init (7d60ba8)
1054   o Enable silent build rules by default. Override with V=1 (7b18e5c)
1055   o Switch to non-recursive makefiles (7092f3b)
1056   o Rename subordinate Makefile.ams to include.am (6cdfeeb)
1057   o Make quiet build even quieter (371a123)
1058   o New --quiet option for event_rpcgen.py (aa59c1e)
1059   o Be quiet when making regress.gen.[ch] (607a8ff)
1060   o Fix handling of no-python case for nonrecursive make (1e3123d)
1061   o We now require automake 1.9 or later. Modernize! (b7f6e89)
1062   o Rename configure.in to configure.ac. (b3fea67 Ross Lagerwall)
1063   o Use correct openssl libs and includes in pkgconfig file (d70af27)
1064   o Use the same CFLAGS for openssl when building unit tests as with
1065     libevent (1d9d511)
1066
1067DOCUMENTATION
1068   o Note that make_base_notifiable should not be necessary (26ee5f9)
1069   o Be more clear that LEV_OPT_DEFERRED_ACCEPT has tricky prereqs (371efeb)
1070   o Add caveat to docs about bufferevent_free() with data in outbuf (6fab9ee)
1071   o Make it more clear that NOLOCK means "I promise, no multithreading"
1072    (9444524)
1073   o Fix a comment in test-fdleak after 077c7e949. (3881d8f Ross Lagerwall)
1074   o Make the Makefile.nmake warning slightly less dire (e7bf4c8)
1075   o Fix typo : events instead of evets (05f1aca Azat Khuzhin)
1076   o Additional comments about OPENSSL_DIR variable, prompted by Dave Hart
1077     (6bde2ef Patrick Pelletier)
1078
1079EVHTTP:
1080   o ignore LWS after field-content in headers (370a2c0 Artem Germanov)
1081   o Clean up rtrim implementation (aa59d80)
1082   o Remove trailing tabs in HTTP headers as well. (ac42519)
1083   o Remove internal ws from multiline http headers correctly (c6ff381)
1084   o Move evutil_rtrim_lws_ to evutil.c where it belongs (61b93af)
1085   o add evhttp_request_get_response_code_line (4f4d0c9 Jay R. Wren)
1086   o Use EVUTIL_SOCKET_ERROR() wrapper to save/restore errno in
1087     evhttp_connection_fail_ (7afbd60)
1088   o preserve errno in evhttp_connection_fail_ for inspection by the
1089     callback (36d0ee5 Patrick Pelletier)
1090
1091BUGFIXES:
1092   o Correctly handle running on a system where accept4 doesn't work. (9fbfe9b)
1093   o Avoid double-free on error in evbuffer_add_file. Found by
1094     coverity. (6a81b1f)
1095   o Fix another possible uninitialized read in dns regression tests. Found
1096     by coverity. (13525c5)
1097   o Add checks for functions in test-ratelim.c; found by Coverity (aa501e1)
1098   o Avoid memory leak in test_event_calloc unit test; found by coverity
1099     (92817a1)
1100   o Fix a shadowed variable in addfile_test_readcb; found by coverity
1101     (225344c)
1102   o Check return value when using LEV_OPT_DEFERRED_ACCEPT. Found by
1103     coverity (6487f63)
1104   o Prevent reference leak of bufferevent if getaddrinfo fails. (b757786
1105     Joachim Bauch)
1106   o Make event_base_getnpriorities work with old "implicit base" code
1107     (c46cb9c)
1108   o Simplify and correct evutil_open_closeonexec_ (0de587f)
1109   o Fix event_dlist definition when sys/queue not included (81b6209
1110     Derrick Pallas)
1111
1112
1113
1114Changes in version 2.1.1-alpha (4 Apr 2012)
1115
1116 Libevent 2.1.1-alpha includes a number of new features and performance
1117 improvements.  The log below tries to organize them by rough area of
1118 effect.  It omits some commits which were pure bugfixes on other commits
1119 listed below.  For more detail, see the git changelogs.  For more
1120 insight, see the "whatsnew-2.1.txt" document included in the Libevent
1121 2.1.1-alpha distribution.
1122
1123 Performance: Core
1124   o Replace several TAILQ users with LIST. LIST can be a little faster than
1125     TAILQ for cases where we don't need queue-like behavior. (f9db33d,
1126     6494772, d313c29, 974d004)
1127   o Disabled code to optimize the case where we reinsert an existing
1128     timeout (e47042f, 09cbc3d)
1129   o Remove a needless base-notify when rescheduling the first timeout (77a96fd)
1130   o Save a needless comparison when removing/adjusting timeouts (dd5189b)
1131   o Possible optimization: split event_queue_insert/remove into
1132     separate functions. needs testing (efc4dc5)
1133   o Make event_count maintenance branchless at the expense of an
1134     extra shift. Needs benchmarking (d1cee3b)
1135   o In the 2.1 branch, let's try out lazy gettimeofday/clock_gettime
1136     comparison (2a83ecc)
1137   o Optimization in event_process_active(): ignore maxcb & endtime
1138     for highest priority events. (a9866aa Alexander Drozdov)
1139   o Bypass event_add when using event_base_once() for a 0-sec timeout (35c5c95)
1140   o Remove the eventqueue list and the ev_next pointers. (604569b 066775e)
1141
1142 Performance: Evbuffers
1143   o Roughly 20% speed increase when line-draining a buffer using
1144     EVBUFFER_EOL_CRLF (5dde0f0 Mina Naguib)
1145   o Try to squeeze a little more speed out of EVBUFFER_EOL_CRLF (7b9d139)
1146   o Fix a bug in the improved EOL_CRLF code (d927965)
1147   o Remove a needless branch in evbuffer_drain() (d19a326)
1148
1149 Performance: Linux
1150   o Infrastructure for using faster/fewer syscalls when creating
1151     sockets (a1c042b)
1152   o Minimize syscalls during socket creation in listener.c (7e9e289)
1153   o Use a wrapper function to create the notification
1154     pipe/socketpair/eventfd (ca76cd9)
1155   o Use pipes for telling signals to main thread when possible (a35f396)
1156   o Save syscalls when constructing listener sockets for evhttp (af6c9d8)
1157   o Save some syscalls when creating evdns sockets (713e570)
1158   o Save some syscalls when constructing a socket for a bufferevent (33fca62)
1159   o Prefer epoll_create1 on Linuxen that have it (bac906c)
1160
1161 Performance: Epoll backend
1162   o Use current event set rather than current pending change when
1163     deciding whether to no-op a del (04ba27e Mike Smellie)
1164   o Replace big chain of if/thens in epoll.c with a table lookup (8c83eb6)
1165   o Clean up error handling in epoll_apply_one_change() a little (2d55a19)
1166
1167 Performance: Evport backend
1168   o evport: use evmap_io to track fdinfo status. Should save time and
1169     RAM. (4687ce4)
1170   o evport: Remove a linear search over recent events when
1171     reactivating them (0f77efe)
1172   o evport: Use portev_user to remember fdinfo struct (276ec0e)
1173   o evport: don't scan more events in ed_pending than needed (849a5cf)
1174   o evport: Remove artificial low limit on max events per getn call (c04d927)
1175   o Reenable main/many_events_slow_add for evport in 2.1 (e903db3)
1176
1177 Performance: Windows
1178   o Use GetSystemTimeAsFileTime to implement gettimeofday on
1179     win32. It's faster and more accurate than our old
1180     approach. (b8b8aa5)
1181
1182 New functions and features: debugging
1183   o Add event_enable_debug_logging() to control use of debug logs (e30a82f)
1184
1185 New functions and features: core
1186   o Add event_config function to limit time/callbacks between calls
1187     to dispatch (fd4de1e, 9fa56bd, a37a0c0, 3c63edd)
1188   o New EVLOOP_NO_EXIT_ON_EMPTY option to keep looping even when no
1189     events are pending (084e68f)
1190   o Add event_base_get_npriorities() function. (ee3a4ee Alexander Drozdov)
1191   o Make evbase_priority_init() and evbase_get_npriorities()
1192     threadsafe (3c55b5e)
1193   o New event_base_update_cache_time() to set cached_tv to current
1194     time (212533e Abel Mathew)
1195   o Add event_self_cbarg() to be used in conjunction with
1196     event_new(). (ed36e6a Ross Lagerwall, fa931bb, 09a1906, 1338e6c,
1197     33e43ef)
1198   o Add a new libevent_global_shutdown() to free all globals before
1199     exiting. (041ca00 Mark Ellzey, f98c158, 15296d0, 55e991b)
1200   o Use getifaddrs to detect our interfaces if possible (7085a45)
1201   o Add event_base_get_running_event() to get the event* whose cb we
1202     are in (c5732fd, 13dad99)
1203
1204 New functions and features: building
1205   o Implement --enable-gcc-hardening configure option (7550267 Sebastian Hahn)
1206
1207 New functions and features: evbuffers
1208   o Add evbuffer_add_file_segment() so one fd can be used efficiently
1209     in more than one evbuffer_add_file at a time (e72afae, c2d9884,
1210     3f405d2, 0aad014)
1211   o Fix windows file segment mappings (8254de7)
1212   o Allow evbuffer_ptr_set to yield a point just after the end of the
1213     buffer. (e6fe1da)
1214   o Allow evbuffer_ptr to point to position 0 in an empty evbuffer
1215     (7aeb2fd Nir Soffer)
1216   o Set the special "not found" evbuffer_ptr consistently. (e3e97ae Nir Soffer)
1217   o support adding buffers to other buffers non-destructively
1218     (9d7368a Joachim Bauch)
1219   o prevent nested multicast references, reworked locking (26041a8
1220     Joachim Bauch)
1221   o New EVBUFFER_EOL_NUL to read NUL-terminated strings from an
1222     evbuffer (d7a8b36 Andrea Montefusco, 54142c9)
1223   o Make evbuffer_file_segment_types adaptable (c6bbbf1)
1224   o Added evbuffer_add_iovec and unit tests. (aaec5ac Mark Ellzey, 27b5398)
1225   o Add evbuffer_copyout_from to copy data from the middle of a
1226     buffer (27e2225)
1227
1228 New functions and features: bufferevents
1229   o Allow users to set allow_dirty_shutdown (099d27d Catalin Patulea)
1230   o Tweak allow_dirty_shutdown documentation (a44cd2b)
1231   o Fix two issues in the allow_dirty_shutdown code. (f3b89de)
1232   o Add a bufferevent_getcb() to find a bufferevent's current
1233     callbacks (a650394)
1234   o bufferevent: Add functions to set/get max_single_read/write
1235     values. (998c813 Alexander Drozdov)
1236   o bev_ssl: Be more specific in event callbacks. evhttp in particular gets
1237     confused without at least one of BEV_EVENT_{READING|WRITING}. (f7eb69a
1238     Catalin Patulea)
1239
1240 New functions and features: evconnlisteners
1241   o Support TCP_DEFER_ACCEPT sockopts for listeners (5880e4a Mark Ellzey,
1242     a270728)
1243   o Add another caveat to the TCP_DEFER_ACCEPT documentation (a270728)
1244   o Allow evconnlistener to be created in disabled state. (9593a33
1245     Alexander Drozdov)
1246   o The LEV_OPT_CLOSE_ON_EXEC flag now applies to accepted listener
1247     sockets too (4970329)
1248
1249 Evhttp:
1250   o Add new evhttp_{connection_}set_timeout_tv() functions to set
1251     finger-grained http timeouts (6350e6c Constantine Verutin)
1252   o Performance tweak to evhttp_parse_request_line. (aee1a97 Mark Ellzey)
1253   o Add missing break to evhttp_parse_request_line (0fcc536)
1254   o Add evhttp callback for bufferevent creation; this lets evhttp
1255     support SSL. (8d3a850)
1256   o Remove calls to deprecated bufferevent functions from evhttp.c (4d63758)
1257   o evhttp: Add evhttp_foreach_bound_socket. (a2c48e3 Samy Al Bahra)
1258
1259 Build improvements:
1260   o Add AC_USE_SYSTEM_EXTENSIONS to configure.in. Requires follow on
1261     patches for correctness and robustness. (1fa7dbe Kevin Bowling)
1262   o Filter '# define' statements from autoconf and generate
1263     event-private.h (321b558 Kevin Bowling)
1264   o Remove internal usage of _GNU_SOURCE (3b26541 Kevin Bowling)
1265   o Eliminate a couple more manual internal _GNU_SOURCE defines (c51ef93
1266     Kevin Bowling)
1267   o Add AC_GNU_SOURCE to the fallback case. (ea8fa4c Kevin Bowling)
1268   o Use a Configuration Header Template for evconfig-private.h (868f888
1269     Kevin Bowling)
1270   o Fix a comment warning and add evconfig-private.h to .gitignore
1271     (f6d66bc Kevin Bowling)
1272   o Include evconfig-private.h in internal files for great good. (0915ca0
1273     Kevin Bowling)
1274   o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
1275     (ad03952 Kevin Bowling)
1276   o Prefer the ./configure evconfig-private.h in MinGW, just in
1277     case. (f964b72 Kevin Bowling)
1278   o Shell hack for weird mkdir -p commands (fd7b5a8 Kevin Bowling)
1279   o Add evconfig-private to remaining files (ded0a09 Kevin Bowling)
1280   o Allow use of --enable-silent-rules for quieter compilation with
1281     automake 1.11 (f1f8514 Dave Hart)
1282   o Use "_WIN32", not WIN32: it's standard and we don't need to fake it
1283     (9f560b)
1284   o In configure, test for _WIN32 not WIN32. (85078b1 Peter Rosin)
1285   o Do not define WIN32 in Makefile.nmake (d41f3ea Peter Rosin)
1286   o Provide the autoconf m4 macros for the new OpenSSL via pkg-config
1287     stuff. (674dc3d Harlan Stenn)
1288   o Use pkg-config (if available) to handle OpenSSL. (1c63860 Harlan Stenn)
1289   o We need AM_CPPFLAGS when compiling bufferevent_openssl.c (6d2613b
1290     Harlan Stenn)
1291   o Fix OSX build: $(OPENSSL_INCS) needs to be after
1292     $(AM_CPPFLAGS). (46f1769 Zack Weinberg)
1293   o Make gcc warnings on by default, and --enable-gcc-warnings only add
1294     -Werror (d46517e Sebastian Hahn)
1295   o Split up extra-long AC_CHECK_FUNCS/HEADERS lines in configure.in (88a30ad)
1296   o Move libevent 1.x headers to include/, to put all public headers in
1297     one place. (bbea8d6)
1298   o Put #ifdef around some files to support alternate build
1299     systems. (76d4c92 Ross Lagerwall)
1300   o Also make win32select.c conditional for IDE users (bf2c5a7)
1301
1302 Debugging:
1303   o Add a magic number to debug_locks to better catch lock-coding
1304     errors. (b4a29c0 Dave Hart)
1305   o munge the debug_lock signature before freeing it: it might help us
1306     catch use-after-free (f28084d)
1307   o Added --enable-event-debugging in configure (bc7b4e4, a9c2c9a Mark Ellzey)
1308   o Debug addition for printing usec on TIMEOUT debugging. (ac43ce0 Mark Ellzey)
1309   o Added usec debug in another area for debug (3baab0d Mark Ellzey)
1310   o added timeout debug logs to include event ptr. (4b7d298 Mark Ellzey)
1311   o more event dbg updates (6727543 Mark Ellzey)
1312   o Clarify event_enable_debug_logging a little (6207826)
1313   o Make --enable-verbose-debug option match its help text (10c3450)
1314   o Add argument checks to some memory functions in `event.c'. (c8953d1
1315     Mansour Moufid)
1316
1317 Testing:
1318   o More abstraction in test.sh (cd74c4e)
1319   o Add failing test for evbuffer_search_range. (8e26154 Nir Soffer)
1320   o Tweaks to return types with end-of-buf ptrs (9ab8ab8)
1321   o Add an (internal) usleep function for use by unit tests (f25d9d3)
1322   o Synchronize with upstream tinytest (6c81be7)
1323   o Make test-changelist faster (7622d26)
1324   o Reduce the timeout in the main/fork test. (ab14f7c)
1325   o New evhttp function to adjust initial retry timeout (350a3c4)
1326   o Make regression tests run over 3x faster. (67a1763)
1327   o Use test_timeval_diff_eq more consistently (b77b43f)
1328   o Allow more slop in deferred_cb_skew test; freebsd needs it (b9f7e5f)
1329   o When including an -internal.h header outside the main tree, do so
1330     early (95e2455)
1331   o Add a new test: test-fdleak which tests for fd leaks by creating many
1332     sockets. (2ef9278 Ross Lagerwall, f7af194, 1c4288f, etc)
1333   o Add a unit test for event_base_dump_events() (7afe48a, 8d08cce)
1334   o Test more bufferevent_ratelim features (c24f91a)
1335
1336 Documentation:
1337   o Improve evbuffer_ptr documentation (261ba63)
1338   o added comments to describe refcounting of multicast chains (ba24f61
1339     Joachim Bauch)
1340   o Add doxygen for event_base_dump_events (cad5753)
1341
1342 OSX:
1343   o Use "unlimited select" on OSX so that we can have more than
1344     FD_SETSIZE fds (1fb5cc6)
1345
1346 KQueue:
1347   o Use SIG_IGN instead of a do-nothing handler for signal events with
1348     kqueue (148458e Zack Weinberg)
1349
1350 evprc:
1351   o event_rpcgen.py now prints status information to stdout and errors to
1352     stderr. (ffb0ba0 Ross Lagerwall)
1353
1354 Code improvement and refactoring:
1355   o Make event_reinit() more robust and maintainable (272033e)
1356   o Restore fast-path event_reinit() for slower backends (2c4b5de)
1357   o Check changelist as part of checking representational integrity (39b3f38)
1358   o Fix a compile warning in event_reinit (e4a56ed Sebastian Hahn)
1359   o Refactor the functions that run over every event. (c89b4e6)
1360   o Remove the last vestiges of _EVENT_USE_EVENTLIST (a3cec90)
1361   o Make event-config.h depend on Makefile.am (2958a5c)
1362
1363 Build fixes:
1364   o Don't do clang version detection when disabling some flags (083296b
1365     Sebastian Hahn)
1366
1367 C standards conformance:
1368   o Check for NULL return on win32 mm_calloc, and set ENOMEM. (af7ba69)
1369   o Convert event-config.h macros to avoid reserved identifiers (68120d9)
1370   o Generate event-config.h using the correct macros. (f82c57e)
1371   o Convert include-guard macro convention to avoid reserved identifiers
1372     (3f8c7cd)
1373   o Make event_rpcgen.py output conform to identifier conventions (372bff1)
1374   o Stop referring to an obsolete include guard in bench_http.h (5c0f7e0)
1375   o Make the generated event-config.h use correct include guards (639383a)
1376   o Fix all identifiers with names beginning with underscore. (cb9da0b)
1377   o Make event_rpcgen.py output conform to identifier conventions, more
1378     (bcefd24)
1379   o Fix some problems introduced by automated identifier cleanup script
1380     (c963534)
1381   o Have all visible internal function names end with an underscore. (8ac3c4c)
1382   o Apply the naming convention to our EVUTIL_IS* functions (c7848fa)
1383   o Clean up lingering _identifiers. (946b584)
1384   o Fix doxygen to use new macro conventions (da455e9)
1385
1386 Bugfixes:
1387   o Do not use system EAI/AI values if we are not using the system
1388     getaddrinfo. (7bcac07)
1389
1390 Sample Code:
1391   o Fix up sample/event-test.c to use newer interfaces and make it
1392     actually work. (19bab4f Ross Lagerwall)
1393   o On Unix, remove event.fifo left by sample/event-test.c. (c0dacd2 Ross
1394     Lagerwall)
1395   o Rename event-test.c to event-read-fifo.c. (a5b370a Ross Lagerwall)
1396   o event-read-fifo: Use EV_PERSIST appropriately (24dab0b)
1397
1398
1399
1400
1401