Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 290 lines (258 sloc) 13.997 kB
d9a5515 Increment the version to 2.1.1-alpha-dev
Nick Mathewson authored
1 Changes in version 2.1.2-alpha (?? ??? 2012)
2
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
3 Changes in version 2.1.1-alpha (4 Apr 2012)
4
5 Libevent 2.1.1-alpha includes a number of new features and performance
6 improvements. The log below tries to organize them by rough area of
7 effect. It omits some commits which were pure bugfixes on other commits
8 listed below. For more detail, see the git changelogs. For more
9 insight, see the "whatsnew-2.1.txt" document included in the Libevent
10 2.1.1-alpha distribution.
11
12 Performance: Core
13 o Replace several TAILQ users with LIST. LIST can be a little faster than
14 TAILQ for cases where we don't need queue-like behavior. (f9db33d,
15 6494772, d313c29, 974d004)
16 o Disabled code to optimize the case where we reinsert an existing
17 timeout (e47042f, 09cbc3d)
18 o Remove a needless base-notify when rescheduling the first timeout (77a96fd)
19 o Save a needless comparison when removing/adjusting timeouts (dd5189b)
20 o Possible optimization: split event_queue_insert/remove into
21 separate functions. needs testing (efc4dc5)
88b4f0b fix some typos in the 2.1 changelog
Nick Mathewson authored
22 o Make event_count maintenance branchless at the expense of an
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
23 extra shift. Needs benchmarking (d1cee3b)
24 o In the 2.1 branch, let's try out lazy gettimeofday/clock_gettime
25 comparison (2a83ecc)
26 o Optimization in event_process_active(): ignore maxcb & endtime
27 for highest priority events. (a9866aa Alexander Drozdov)
28 o Bypass event_add when using event_base_once() for a 0-sec timeout (35c5c95)
29 o Remove the eventqueue list and the ev_next pointers. (604569b 066775e)
30
31 Performance: Evbuffers
32 o Roughly 20% speed increase when line-draining a buffer using
33 EVBUFFER_EOL_CRLF (5dde0f0 Mina Naguib)
34 o Try to squeeze a little more speed out of EVBUFFER_EOL_CRLF (7b9d139)
35 o Fix a bug in the improved EOL_CRLF code (d927965)
36 o Remove a needless branch in evbuffer_drain() (d19a326)
37
38 Performance: Linux
39 o Infrastructure for using faster/fewer syscalls when creating
40 sockets (a1c042b)
41 o Minimize syscalls during socket creation in listener.c (7e9e289)
42 o Use a wrapper function to create the notification
43 pipe/socketpair/eventfd (ca76cd9)
44 o Use pipes for telling signals to main thread when possible (a35f396)
45 o Save syscalls when constructing listener sockets for evhttp (af6c9d8)
46 o Save some syscalls when creating evdns sockets (713e570)
47 o Save some syscalls when constructing a socket for a bufferevent (33fca62)
48 o Prefer epoll_create1 on Linuxen that have it (bac906c)
49
50 Performance: Epoll backend
51 o Use current event set rather than current pending change when
52 deciding whether to no-op a del (04ba27e Mike Smellie)
53 o Replace big chain of if/thens in epoll.c with a table lookup (8c83eb6)
54 o Clean up error handling in epoll_apply_one_change() a little (2d55a19)
55
56 Performance: Evport backend
57 o evport: use evmap_io to track fdinfo status. Should save time and
58 RAM. (4687ce4)
59 o evport: Remove a linear search over recent events when
60 reactivating them (0f77efe)
61 o evport: Use portev_user to remember fdinfo struct (276ec0e)
62 o evport: don't scan more events in ed_pending than needed (849a5cf)
63 o evport: Remove artificial low limit on max events per getn call (c04d927)
64 o Reenable main/many_events_slow_add for evport in 2.1 (e903db3)
65
66 Performance: Windows
67 o Use GetSystemTimeAsFileTime to implement gettimeofday on
68 win32. It's faster and more accurate than our old
69 approach. (b8b8aa5)
70
71 New functions and features: debugging
72 o Add event_enable_debug_logging() to control use of debug logs (e30a82f)
73
74 New functions and features: core
75 o Add event_config function to limit time/callbacks between calls
76 to dispatch (fd4de1e, 9fa56bd, a37a0c0, 3c63edd)
77 o New EVLOOP_NO_EXIT_ON_EMPTY option to keep looping even when no
78 events are pending (084e68f)
79 o Add event_base_get_npriorities() function. (ee3a4ee Alexander Drozdov)
80 o Make evbase_priority_init() and evbase_get_npriorities()
81 threadsafe (3c55b5e)
82 o New event_base_update_cache_time() to set cached_tv to current
83 time (212533e Abel Mathew)
84 o Add event_self_cbarg() to be used in conjunction with
85 event_new(). (ed36e6a Ross Lagerwall, fa931bb, 09a1906, 1338e6c,
86 33e43ef)
87 o Add a new libevent_global_shutdown() to free all globals before
88 exiting. (041ca00 Mark Ellzey, f98c158, 15296d0, 55e991b)
89 o Use getifaddrs to detect our interfaces if possible (7085a45)
90 o Add event_base_get_running_event() to get the event* whose cb we
91 are in (c5732fd, 13dad99)
92
93 New functions and features: building
94 o Implement --enable-gcc-hardening configure option (7550267 Sebastian Hahn)
95
96 New functions and features: evbuffers
97 o Add evbuffer_add_file_segment() so one fd can be used efficiently
98 in more than one evbuffer_add_file at a time (e72afae, c2d9884,
99 3f405d2, 0aad014)
100 o Fix windows file segment mappings (8254de7)
101 o Allow evbuffer_ptr_set to yield a point just after the end of the
102 buffer. (e6fe1da)
103 o Allow evbuffer_ptr to point to position 0 in an empty evbuffer
104 (7aeb2fd Nir Soffer)
88b4f0b fix some typos in the 2.1 changelog
Nick Mathewson authored
105 o Set the special "not found" evbuffer_ptr consistently. (e3e97ae Nir Soffer)
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
106 o support adding buffers to other buffers non-destructively
107 (9d7368a Joachim Bauch)
108 o prevent nested multicast references, reworked locking (26041a8
109 Joachim Bauch)
110 o New EVBUFFER_EOL_NUL to read NUL-terminated strings from an
111 evbuffer (d7a8b36 Andrea Montefusco, 54142c9)
112 o Make evbuffer_file_segment_types adaptable (c6bbbf1)
113 o Added evbuffer_add_iovec and unit tests. (aaec5ac Mark Ellzey, 27b5398)
114 o Add evbuffer_copyout_from to copy data from the middle of a
115 buffer (27e2225)
116
117 New functions and features: bufferevents
118 o Allow users to set allow_dirty_shutdown (099d27d Catalin Patulea)
119 o Tweak allow_dirty_shutdown documentation (a44cd2b)
120 o Fix two issues in the allow_dirty_shutdown code. (f3b89de)
121 o Add a bufferevent_getcb() to find a bufferevent's current
122 callbacks (a650394)
123 o bufferevent: Add functions to set/get max_single_read/write
124 values. (998c813 Alexander Drozdov)
125 o bev_ssl: Be more specific in event callbacks. evhttp in particular gets
126 confused without at least one of BEV_EVENT_{READING|WRITING}. (f7eb69a
127 Catalin Patulea)
128
129 New functions and features: evconnlisteners
130 o Support TCP_DEFER_ACCEPT sockopts for listeners (5880e4a Mark Ellzey,
131 a270728)
132 o Add another caveat to the TCP_DEFER_ACCEPT documentation (a270728)
133 o Allow evconnlistener to be created in disabled state. (9593a33
134 Alexander Drozdov)
135 o The LEV_OPT_CLOSE_ON_EXEC flag now applies to accepted listener
136 sockets too (4970329)
137
138 Evhttp:
139 o Add new evhttp_{connection_}set_timeout_tv() functions to set
140 finger-grained http timeouts (6350e6c Constantine Verutin)
141 o Performance tweak to evhttp_parse_request_line. (aee1a97 Mark Ellzey)
142 o Add missing break to evhttp_parse_request_line (0fcc536)
143 o Add evhttp callback for bufferevent creation; this lets evhttp
144 support SSL. (8d3a850)
145 o Remove calls to deprecated bufferevent functions from evhttp.c (4d63758)
146 o evhttp: Add evhttp_foreach_bound_socket. (a2c48e3 Samy Al Bahra)
147
148 Build improvements:
149 o Add AC_USE_SYSTEM_EXTENSIONS to configure.in. Requires follow on
150 patches for correctness and robustness. (1fa7dbe Kevin Bowling)
151 o Filter '# define' statements from autoconf and generate
152 event-private.h (321b558 Kevin Bowling)
153 o Remove internal usage of _GNU_SOURCE (3b26541 Kevin Bowling)
154 o Eliminate a couple more manual internal _GNU_SOURCE defines (c51ef93
155 Kevin Bowling)
156 o Add AC_GNU_SOURCE to the fallback case. (ea8fa4c Kevin Bowling)
157 o Use a Configuration Header Template for evconfig-private.h (868f888
158 Kevin Bowling)
159 o Fix a comment warning and add evconfig-private.h to .gitignore
160 (f6d66bc Kevin Bowling)
161 o Include evconfig-private.h in internal files for great good. (0915ca0
162 Kevin Bowling)
163 o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
164 (ad03952 Kevin Bowling)
165 o Prefer the ./configure evconfig-private.h in MinGW, just in
166 case. (f964b72 Kevin Bowling)
167 o Shell hack for weird mkdir -p commands (fd7b5a8 Kevin Bowling)
168 o Add evconfig-private to remaining files (ded0a09 Kevin Bowling)
169 o Allow use of --enable-silent-rules for quieter compilation with
170 automake 1.11 (f1f8514 Dave Hart)
171 o Use "_WIN32", not WIN32: it's standard and we don't need to fake it
172 (9f560b)
173 o In configure, test for _WIN32 not WIN32. (85078b1 Peter Rosin)
174 o Do not define WIN32 in Makefile.nmake (d41f3ea Peter Rosin)
175 o Provide the autoconf m4 macros for the new OpenSSL via pkg-config
176 stuff. (674dc3d Harlan Stenn)
177 o Use pkg-config (if available) to handle OpenSSL. (1c63860 Harlan Stenn)
178 o We need AM_CPPFLAGS when compiling bufferevent_openssl.c (6d2613b
179 Harlan Stenn)
180 o Fix OSX build: $(OPENSSL_INCS) needs to be after
181 $(AM_CPPFLAGS). (46f1769 Zack Weinberg)
182 o Make gcc warnings on by default, and --enable-gcc-warnings only add
183 -Werror (d46517e Sebastian Hahn)
184 o Split up extra-long AC_CHECK_FUNCS/HEADERS lines in configure.in (88a30ad)
185 o Move libevent 1.x headers to include/, to put all public headers in
186 one place. (bbea8d6)
187 o Put #ifdef around some files to support alternate build
188 systems. (76d4c92 Ross Lagerwall)
189 o Also make win32select.c conditional for IDE users (bf2c5a7)
190
191 Debugging:
192 o Add a magic number to debug_locks to better catch lock-coding
193 errors. (b4a29c0 Dave Hart)
194 o munge the debug_lock signature before freeing it: it might help us
195 catch use-after-free (f28084d)
196 o Added --enable-event-debugging in configure (bc7b4e4, a9c2c9a Mark Ellzey)
197 o Debug addition for printing usec on TIMEOUT debugging. (ac43ce0 Mark Ellzey)
198 o Added usec debug in another area for debug (3baab0d Mark Ellzey)
199 o added timeout debug logs to include event ptr. (4b7d298 Mark Ellzey)
200 o more event dbg updates (6727543 Mark Ellzey)
201 o Clarify event_enable_debug_logging a little (6207826)
202 o Make --enable-verbose-debug option match its help text (10c3450)
203 o Add argument checks to some memory functions in `event.c'. (c8953d1
204 Mansour Moufid)
205
206 Testing:
207 o More abstraction in test.sh (cd74c4e)
208 o Add failing test for evbuffer_search_range. (8e26154 Nir Soffer)
209 o Tweaks to return types with end-of-buf ptrs (9ab8ab8)
210 o Add an (internal) usleep function for use by unit tests (f25d9d3)
211 o Synchronize with upstream tinytest (6c81be7)
212 o Make test-changelist faster (7622d26)
213 o Reduce the timeout in the main/fork test. (ab14f7c)
214 o New evhttp function to adjust initial retry timeout (350a3c4)
215 o Make regression tests run over 3x faster. (67a1763)
216 o Use test_timeval_diff_eq more consistently (b77b43f)
217 o Allow more slop in deferred_cb_skew test; freebsd needs it (b9f7e5f)
218 o When including an -internal.h header outside the main tree, do so
219 early (95e2455)
220 o Add a new test: test-fdleak which tests for fd leaks by creating many
221 sockets. (2ef9278 Ross Lagerwall, f7af194, 1c4288f, etc)
222 o Add a unit test for event_base_dump_events() (7afe48a, 8d08cce)
223 o Test more bufferevent_ratelim features (c24f91a)
224
225 Documentation:
226 o Improve evbuffer_ptr documentation (261ba63)
88b4f0b fix some typos in the 2.1 changelog
Nick Mathewson authored
227 o added comments to describe refcounting of multicast chains (ba24f61
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
228 Joachim Bauch)
229 o Add doxygen for event_base_dump_events (cad5753)
230
231 OSX:
232 o Use "unlimited select" on OSX so that we can have more than
233 FD_SETSIZE fds (1fb5cc6)
234
235 KQueue:
236 o Use SIG_IGN instead of a do-nothing handler for signal events with
237 kqueue (148458e Zack Weinberg)
238
239 evprc:
240 o event_rpcgen.py now prints status information to stdout and errors to
241 stderr. (ffb0ba0 Ross Lagerwall)
242
243 Code improvement and refactoring:
244 o Make event_reinit() more robust and maintainable (272033e)
245 o Restore fast-path event_reinit() for slower backends (2c4b5de)
246 o Check changelist as part of checking representational integrity (39b3f38)
247 o Fix a compile warning in event_reinit (e4a56ed Sebastian Hahn)
248 o Refactor the functions that run over every event. (c89b4e6)
249 o Remove the last vestiges of _EVENT_USE_EVENTLIST (a3cec90)
250 o Make event-config.h depend on Makefile.am (2958a5c)
251
252 Build fixes:
253 o Don't do clang version detection when disabling some flags (083296b
254 Sebastian Hahn)
255
256 C standards conformance:
257 o Check for NULL return on win32 mm_calloc, and set ENOMEM. (af7ba69)
258 o Convert event-config.h macros to avoid reserved identifiers (68120d9)
259 o Generate event-config.h using the correct macros. (f82c57e)
260 o Convert include-guard macro convention to avoid reserved identifiers
261 (3f8c7cd)
88b4f0b fix some typos in the 2.1 changelog
Nick Mathewson authored
262 o Make event_rpcgen.py output conform to identifier conventions (372bff1)
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
263 o Stop referring to an obsolete include guard in bench_http.h (5c0f7e0)
264 o Make the generated event-config.h use correct include guards (639383a)
265 o Fix all identifiers with names beginning with underscore. (cb9da0b)
88b4f0b fix some typos in the 2.1 changelog
Nick Mathewson authored
266 o Make event_rpcgen.py output conform to identifier conventions, more
2dedff3 Try to finalize changelog situation for 2.1.1-alpha
Nick Mathewson authored
267 (bcefd24)
268 o Fix some problems introduced by automated identifier cleanup script
269 (c963534)
270 o Have all visible internal function names end with an underscore. (8ac3c4c)
271 o Apply the naming convention to our EVUTIL_IS* functions (c7848fa)
272 o Clean up lingering _identifiers. (946b584)
273 o Fix doxygen to use new macro conventions (da455e9)
274
275 Bugfixes:
276 o Do not use system EAI/AI values if we are not using the system
277 getaddrinfo. (7bcac07)
278
279 Sample Code:
280 o Fix up sample/event-test.c to use newer interfaces and make it
281 actually work. (19bab4f Ross Lagerwall)
282 o On Unix, remove event.fifo left by sample/event-test.c. (c0dacd2 Ross
283 Lagerwall)
284 o Rename event-test.c to event-read-fifo.c. (a5b370a Ross Lagerwall)
285 o event-read-fifo: Use EV_PERSIST appropriately (24dab0b)
25a424f Add an empty changelog section for 2.0.19-stable
Nick Mathewson authored
286
287
cecb111 Start changelog for 2.0.19-stable
Nick Mathewson authored
288
289
Something went wrong with that request. Please try again.