ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Changes
Revision: 1.228
Committed: Sat Sep 17 02:28:30 2016 UTC (7 years, 7 months ago) by root
Branch: MAIN
Changes since 1.227: +26 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 Revision history for Perl extension EV
2
3 Changes marked with (libev) are changes in libev, and have more
4 documentation in the libev Changes file.
5
6 > > midnight, to keep the example simple. If you know a way to do it correctly
7 > > in about the same space (without requiring elaborate modules), drop me a
8 > > note :):
9 > >
10 > > Dein Beispiel:
11 > > use Time::Local ();
12 > > my (undef, undef, undef, $d, $m, $y) = localtime $now;
13 > > 86400 + Time::Local::timelocal 0, 0, 0, $d, $m, $y
14 > >
15 > > Meine bevorzugte Variante:
16 > > use Time::Local ();
17 > > my (undef, undef, undef, $d, $m, $y) = localtime $now;
18 > > (undef, undef, undef, $d, $m, $y) = localtime 86400 + 3600 +
19 > > Time::Local::timelocal 0, 0, 0, $d, $m, $y;
20 > > Time::Local::timelocal 0, 0, 0, $d, $m, $y;
21 > >
22 > > Golf:
23 > > use Time::Local ();
24 > > Time::Local::timelocal 0, 0, 0, (localtime 86400 + 3600 +
25 > > Time::Local::timelocal 0, 0, 0, (localtime $now)[3..5])[3..5];
26
27 - only use __register_atfork with glibc and uclibc, as musl
28 defines __linux__, but doesn't implement the linux standard
29 base ABI, nor makes itself detectable via a macro, both apparently
30 by design, winning the "broken by design 2016 award" - well done.
31
32 4.22 Sun Dec 20 02:34:39 CET 2015
33 - (libev) when epoll detects unremovable fds in the fd set, rebuild
34 only the epoll descriptor, not the signal pipe, to avoid
35 SIGPIPE in ev_async_send. This doesn't solve it on fork,
36 so document what needs to be done in ev_loop_fork
37 (analyzed by Benjamin Mahler).
38 - (libev) remove superfluous sys/timeb.h include on win32
39 (analyzed by Jason Madden).
40 - updated libecb.
41
42 4.21 Mon Jul 13 21:47:33 CEST 2015
43 - allow argument in timer->again.
44 - document timer->remaining.
45 - document default repeat value for timer->set.
46
47 4.20 Sat Jun 20 13:07:34 CEST 2015
48 - added stability canary support.
49 - truly rely on automatic configuration for clock_gettime and others.
50 unfortunately, this doesn't help with activeperl and similar perls,
51 which define _POSIX_TIMERS without actually implementing any of it.
52 - (libev, ecb) make it compile as C++ again.
53 - (libev) fix a potential aliasing issue when accessing watcher cbs.
54
55 4.18 Sat Sep 6 20:37:23 CEST 2014
56 - use slightly better weay to find includes, to support multiarch
57 on newer perls.
58
59 4.17 Fri Apr 11 06:22:38 CEST 2014
60 - perl5porters broke Async::Interrupt, BDB, EV, IO::AIO, OpenCL
61 without warning by switching the meaning of USE_SOCKETS_AS_HANDLES
62 in 5.18. What's so attractive about giving a shit about backwards
63 compatibility - I will never understand.
64
65 4.16 Sat Mar 8 16:49:05 CET 2014
66 - make sure EV::CHECK is available at all times.
67 - avoid a spurious warning when perl -w overrides "no warnings".
68 - use perl's signal implementation on WIN32.
69 - ensure extern "C" function pointers are used for externally-visible
70 pointers.
71 - (libev) mark event pipe fd as cloexec after a fork (analyzed by Sami Farin).
72 - (ecb) support m68k, m88k and sh (patch by Miod Vallat).
73 - (libev) in the absence of autoconf, do not use the clock syscall
74 on glibc >= 2.17 (avoids the syscall AND -lrt on systems
75 doing clock_gettime in userspace).
76 - (ecb) work around memory barriers and volatile apparently both being
77 broken in visual studio 2008 and later (analysed and patch by Nicolas Noble).
78
79 4.15 Fri Mar 1 12:15:53 CET 2013
80 - (libev) upgrade to 4.15 - too many changes to list.
81 - EV::run now returns a boolean.
82 - API version 5:1.
83 - document that cleanup watchers are not available via perl.
84 - cast I32 to int in error message printf.
85 - remove dependencies on librt and libpthreads on GNU/Linux.
86
87 4.11 Sat Feb 4 19:56:26 CET 2012
88 - (libev) implement memory fences for (obsolete) llvm-gcc.
89
90 4.10 Thu Jan 19 18:54:23 CET 2012
91 - (libev) fix a race where the workaround against the epoll fork
92 bugs caused signals to not be handled anymore.
93 - (libev) correct backend_fudge for most backends, and implement
94 a windows specific workaround to avoid looping because we call
95 both select and Sleep, both with different time resolutions.
96 - e_new wasn't declared static (causing very minor .so bloat).
97 - replace more old api names by new ones.
98
99 4.03 Tue Jan 11 14:51:05 CET 2011
100 - do not avoid the clock_gettime call on GNU/Linux anymore, as EV
101 links against -lpthread anyways - as a result, EV might now take
102 advantage of fast userspace clock_gettime implementations,
103 but also links against -lrt.
104 - (libev) lots of event port bug workarounds.
105 - (libev) officially support files in I/O watchers.
106 - (libev) new function ev_feed_signal.
107 - fix documentation parts still refering to the 3.x API.
108
109 4.02 Thu Dec 30 08:27:41 CET 2010
110 - the revents argument did not stringify correctly, as only the
111 numeric value was updated, while the string value was kept from
112 previous invocations.
113
114 4.01 Sun Dec 5 12:42:13 CET 2010
115 - fully support EV_COMPAT3=0.
116 - default_fork was stupidly defined as inline.
117 - ask cpan to upgrade AnyEvent if < 5.29.
118 - support EV_EXTRA_DEFS during configuration.
119 - support -DEV_NO_LOOPS for snakker build.
120
121 4.00 Mon Oct 25 13:30:09 CEST 2010
122 - many API changes, see the manual.
123 - (libev) lots and lots of bugfixes, see the ev documentation.
124 - fix a bug where inotify usage would parse the same event
125 multiple times, causing various forms of breakage.
126 - greatly reduce stack usage for inotify (8kb to <0.5kb).
127 - expose ev_depth and ev_verify via the XS API.
128 - implement ev_cleanup watchers.
129 - (libev) ev_embed_stop did not correctly stop the watcher.
130 - (libev) disable poll backend on AIX.
131 - (libev) rename EV_TIMEOUT to EV_TIMER.
132 - (libev) add section on accept() problems to the manpage.
133 - (libev) no child watchers on win32.
134 - make code more aliasing compliant, in case perl is ever
135 translated to C.
136 - document the EV::CHECK runtime unavailability.
137 - ported to minix 3.1.7.
138
139 3.9 Thu Dec 31 07:59:59 CET 2009
140 - disable t/07* under automatic testing.
141 - increase t/09* timeouts as netbsd has *horribly* broken
142 select/kevent that *usually* sleep >>0.6s instead of 0.3.
143 - add constants EV::FLAG_NOSIGFD, EV::FLAG_NOINOTIFY and
144 EV::BACKEND_ALL.
145 - (libev) signalfd is no longer used by default.
146 - (libev) backport inotify code to C89.
147 - (libev) inotify file descriptors could leak into child processes.
148 - (libev) ev_stat watchers could keep an errornous extra ref on the loop.
149 - (libev) take advantage of inotify_init1, if available.
150 - (libev) the signal handling pipe wasn't always initialised under windows.
151 - changed minimum glibc requirement from glibc 2.9 to 2.7, for signalfd.
152 - (libev) only replace ev_stat.prev when we detect an actual difference.
153
154 3.8 Sun Aug 9 15:30:10 CEST 2009
155 - implement $loop->signal/signal_ns.
156 - (libev) incompatible change: do not necessarily reset signal
157 handler to SIG_DFL when a sighandler is stopped.
158 - (libev) ev_default_destroy did not properly free or zero some
159 members, potentially causing crashes and memory corruption on
160 repated ev_default_destroy/ev_default_loop calls.
161 - (libev) take advantage of signalfd on GNU/Linux systems.
162 - (libev) document that the signal mask might be in an unspecified
163 state when using libev's signal handling.
164 - (libev) take advantage of some GNU/Linux calls to set
165 cloexec/nonblock on fd creation, to avoid race conditions.
166 - implement internal glue code to interface more efficiently
167 with AnyEvent.
168
169 3.7 Fri Jul 17 16:49:16 CEST 2009
170 - add EV::loop_verify and EV::loop_depth.
171 - use output filehandle for i/o watchers waiting
172 for EV_WRITE, otherwise input filehandle.
173 - use common schmorp.h header.
174 - add EV::Timer->remaining.
175 - allow for subclassing of EV::Loop (see the exciting
176 EV::Loop::Async module for an example).
177 - added EV::invoke_pending and EV::pending_count.
178
179 - (libev) ev_unloop and ev_loop wrongly used a global variable to
180 exit loops, instead of using a per-loop variable.
181 - (libev) the ev_set_io_collect_interval interpretation has changed.
182 - add new functionality: EV::invoke_pending, EV::pending_count.
183 - add $timer->remaining.
184 - add EV::loop_depth.
185 - (libev) calling unloop in fork/prepare watchers will no longer poll
186 for new events.
187 - (libev) use GetSystemTimeAsFileTime instead of _timeb on windows,
188 for slightly higher accuracy.
189 - (libev) actually 0-initialise struct sigaction when installing
190 signals.
191
192 3.6 Tue Apr 28 02:50:37 CEST 2009
193 - keepalive(0) could decrease the refcount of the loop
194 permanently.
195 - add ev_suspend/ev_resume, also make ev_now_update
196 accessible via the XS API.
197 - most EV::<eventtype> constants were missing and have been
198 added :/.
199 - add EV::VERSION_MAJOR/VERSION_MINOR constants.
200 - (libev) multiple timers becoming ready within an event loop
201 iteration will be invoked in the "correct" order now.
202 - (libev) do not leave the event loop early just because we have
203 no active watchers, fixing a problem when embedding a kqueue
204 loop that has active kernel events but no registered watchers
205 (reported by blacksand blacksand).
206 - (libev) correctly zero the idx values for arrays, so destroying
207 and reinitialising the default loop actually works (patch by
208 Malek Hadj-Ali).
209 - (libev) new EV::CUSTOM revents flag for use by applications.
210 - (libev) add documentation section about priorites.
211 - (libev) add a glossary to the dcoumentation.
212 - (libev) extend the ev_fork description slightly.
213 - (libev) optimize a jump out of call_pending.
214 - t/03_keepalive could fail when there was no actual error.
215
216 3.53 Sun Feb 15 02:38:20 CET 2009
217 - (libev) on win32, the event loop creation could randomly fail
218 due to an initialised variable having the wrong value.
219 - (libev) probe for CLOCK_REALTIME support at runtime as well and
220 fall back to gettimeofday if there is an error, to support older
221 operating systems with newer header files/libraries.
222 - prefer gettimeofday over clock_gettime by default.
223
224 3.52 Wed Jan 7 21:46:14 CET 2009
225 - (libev) fix some issues in the select backend when in fd_set mode.
226 - (libev) due to a thinko, instead of disabling everything but
227 select on the borked OS X platform, everything but select was
228 allowed (reported by Emanuele Giaquinta).
229 - (libev) actually verify that local and remote port are matching in
230 libev's socketpair emulation, which makes denial-of-service
231 attacks harder (but not impossible - it's windows). Make sure
232 it even works under vista, which thinks that getpeer/sockname
233 should return fantasy port numbers.
234
235 3.51 Wed Dec 24 23:01:59 CET 2008
236 - do not cache the arguments passed to callbacks if the refcount
237 indicates that the callback has stolen them.
238 - (libev) try to avoid librt on GNU/Linux.
239 - (libev) check port_getn return value dfferently, might potentially
240 avoid problems.
241 - (libev) fix a bug with stat watchers possibly causing freezes.
242 - (libev) work around OS X 10.5 breaking poll, now select is the
243 only viable choice left on that pile of garbage.
244 - play tester whore: disable some tests that typically fail only
245 on cpan tester machines.
246
247 3.49 Wed Nov 19 11:26:53 CET 2008
248 - fix typos in manpage (Alex Efros).
249 - increase timing even further, for the ever-overloaded cpan-tester
250 machines, and to the detriment of everybody else who wants a fast
251 make test.
252 - possible 5.6 compatibility.
253 - (libev) use inotify even on buggy kernels, but don't rely on it.
254 - (libev) use inotify only as an added hint on network filesystems.
255
256 3.48 Thu Oct 30 09:09:48 CET 2008
257 - (libev) use a generation counter to detect spurious epoll events
258 and recreate the kernel in such a case (sorry, it's slow, but
259 I didn't design epoll...).
260 - (libev) optimise away an EPOLL_CTL_ADD/MOD combo in the epoll
261 backend in some cases.
262 - (libev) use memset to initialise most arrays now and do away
263 with the init functions.
264 - speed up event callback invocation further (~15%), by
265 not creating the object reference each time.
266 - EV::sleep was documented, but not implemented. fun.
267
268 3.45 Tue Oct 21 22:20:39 CEST 2008
269 - (libev) disable inotify usage on linux <2.6.25 (kernel bug).
270 - (libev) ev_embed will now automatically follow fork.
271 - (libev) ev_once will now pass both io and timeout events to
272 the callback when both happen concurrently, instead of giving
273 one precedence.
274 - install C library documentation as EV::libev manpage (sorry, oesi).
275 - (libev) fix a minor performance bug in ev_stat handling.
276
277 3.44 Mon Sep 29 05:16:31 CEST 2008
278 - (libev) add EV::now_update and $loop->now_update.
279
280 3.431 Sun Jul 13 00:19:02 CEST 2008
281 - made the EV::embed callback optional again. reported by
282 Vladimir Timofeev.
283
284 3.43 Tue Jul 8 20:56:31 CEST 2008
285 - disabled warnings in EV.pm, the CHECK issue is now understood
286 and harmless.
287
288 3.42 Mon May 26 07:36:46 CEST 2008
289 - (libev) work around another bug in windows perls and
290 windows itself: failed connects do NOT set read or write
291 flags in select, but this version of libev will.
292
293 3.41 Thu May 22 01:39:40 CEST 2008
294 - (libev) fix many heap-related bugs (timers, periodics).
295 - (libev) improve timing stability of timers and periodics.
296 - expose ev_loop_verify to perl code.
297 - clarify documentation for periodic reschedule callbacks.
298 - verify that the passed callback argument is indeed a code
299 reference, for earlier error reporting and a nice calling
300 speed increase (as well as saving memory).
301
302 3.4 Tue May 20 21:51:55 CEST 2008
303 - (libev) work around both a windows bug and a bug in perl's
304 select on windows when not waiting for any file descriptors.
305 - bundle ev.pod into the tarball, just to increase its size
306 (and for the poor internetless person).
307
308 3.33 Sun May 18 12:43:04 CEST 2008
309 - (libev) use numerous enhancements such as a more
310 cache-friendly 4-heap and heap index caching for timers.
311 - remove undocumented ev_timer->at accessor.
312
313 3.31 Wed Apr 16 20:48:59 CEST 2008
314 - (libev) post-last-minute fix for ev_poll.c problem.
315
316 3.3 Wed Apr 16 19:04:47 CEST 2008
317 - (libev) linux eventfd support.
318 - (libev) inline more with C99 compilers.
319 - (libev) work around a number of bugs in valgrind.
320 - (libev) work around broken realloc on openbsd and darwin.
321 - added example to EV::MakeMaker manpage.
322 - add async_pending method.
323
324 3.2 Wed Apr 2 17:08:16 CEST 2008
325 - "ported" again to the Microsoft "C" language.
326 - relax testsuite timing for the benefit of freebsd users once more.
327 - fix EVAPI's ev_time and ev_sleep macros.
328 - (libev) fix select backend on 64 bit architetcures.
329 - (libev) ev_loop flags are now local to each invocation.
330
331 3.1 Sat Mar 8 11:41:14 CET 2008
332 - add ev_sync_* and ev_fork_* to EVAPI.h.
333 - provide EV::Embed->sweep method.
334 - new watcher type: async (not very useful in perl).
335
336 3.0 Mon Jan 28 13:23:11 CET 2008
337 - upgrade to libev-3.0.
338 - change child handler to incorporate tracing flag.
339
340 2.01 Mon Dec 31 01:59:19 CET 2007
341 - found a minor problem in the testsuite that is only
342 caught by new Test::Harness versions (reported by Andreas
343 König).
344
345 2.0 Sat Dec 22 17:47:03 CET 2007
346 - no longer force kqueue when enabled, enable it
347 on more systems (as its now by default not used on most).
348 - expose fork watchers.
349 - switch to libev's MULTIPLICITY API.
350 - use a slightly different include file name strategy.
351 - get rid of (unused) libevent emulation.
352 - 5% watcher management speedup due to callback optimisation
353 when inline closures are used, 5% slowdown due to multiplicity.
354 - very minimal support for dynamic event loops and embed watchers.
355 - fix name of prepare start/stop methods.
356 - create and export EV::sleep and EV::set_*_collect_interval.
357 - fix typos in manpage (Alex Efros).
358
359 1.86 Tue Dec 18 02:36:57 CET 2007
360 - add periodic->at methods.
361
362 1.85 Fri Dec 14 20:32:40 CET 2007
363 - further optimise epoll backend by adding a heuristic that
364 avoids EPOLL_CTL_DEL calls if possible.
365 - EV::signal->start was not async-signal safe.
366 - optimise start/stop when the fd hasn't changed.
367
368 1.8 Tue Dec 11 22:17:46 CET 2007
369 - API version 3:0.
370 - reduced fudge factor to zero for select, poll, epoll
371 and kqueue: your system better be posix-compliant
372 even in its extensions :->
373 - improve long-term numerical stability in periodic watchers
374 by introducing a separate offset value instead of reusing at.
375 - recalculate real/monotonic clocks before blocking fully
376 to avoid blocking for longer than necessary.
377 - fix bugs in the heap functions. this rarely lead to illegal
378 heap orderings.
379
380 1.72 Sat Dec 8 15:31:26 CET 2007
381 - add dummy loop arguments to some EVAPI functions
382 so that clients can use EV_A and EV_DEFAULT.
383 - expose ev_clear_pending.
384 - renamed trigger to invoke.
385
386 1.71 Fri Dec 7 19:10:24 CET 2007
387 - changed/implemented idle watcher priority.
388 - allow out-of-range priorities to be set.
389 - fix ->priority to actually work on started watchers.
390 - improved testsuite.
391
392 1.6 Wed Dec 5 15:06:20 CET 2007
393 - add a missing SPAGAIN.
394 - ripped out EV::DNS, use EV::ADNS for a better backend.
395 - make ev_time callable from EVAPI.h.
396 - add EV::loop_count.
397 - some space optimisations.
398
399 1.5 Wed Nov 28 20:19:09 CET 2007
400 - add inotify backend.
401 - make testsuite even less sensible to timing issues,
402 add more stat tests.
403 - add ->attr, ->prev, ->stat calls to stat watcher.
404
405 1.4 Tue Nov 27 17:35:27 CET 2007
406 - work around a linux 2.4 kernel bug in child handlers.
407 - implement stat watcher interface.
408 - implement fork watcher interface.
409 - io->set did not keep the fh alive.
410 - actively check signal numbers/names to be valid.
411 - cleanups, minor fixes, new bugs.
412 - work around windows bugs in the testsuite.
413
414 1.3 Sun Nov 25 10:46:57 CET 2007
415 - stopping idle/check/prepare watchers could cause data corruption.
416 - implement and document EV::once.
417 - improved documentation, verify that netbsd indeed has the only
418 working kqueue implementation (out of darwin, freebsd, netbsd and
419 openbsd). Praise them!
420 - fix the data method so it might work.
421 - expose ev_ref/ev_unref to the C API.
422 - expose ref/unref in form of the ->keepalive method to perl.
423 - minor bugfixes and portability fixes.
424
425 1.2 Thu Nov 22 05:44:09 CET 2007
426 - disable kqueue by default on !netbsd, as its broken on freebsd,
427 darwin and openbsd and thus almost everywhere.
428 - add some allowance in t/01_timer.t for the uneven monotonic
429 vs. realtime clock tick on at least freebsd.
430 - add -lsocket -lnsl on solaris in case the perl guy forgot to
431 configure them.
432
433 1.1 Wed Nov 21 06:08:48 CET 2007
434 - improved timer test to include periodics and
435 withstand small timing variations.
436 - many minor tweaks to libev.
437
438 1.0 Fri Nov 16 14:51:59 CET 2007
439 - require AnyEvent update if AnyEvent is installed.
440 - add solaris 10 port-based backend.
441 - add child_ns and fix check_ns.
442 - treat yes/no as enforcement, not as hint, when configuring,
443 documentation update (reported by Andy Grundman).
444
445 0.9 Wed Nov 14 22:24:49 CET 2007
446 - changed LIBEV_METHODS to LIBEV_FLAGS and the
447 way this is used inside libev.
448 - many, many bugfixes.
449 - add unloop constants.
450 - add timer test.
451 - ev_loop will now terminate immediately when no watchers are active.
452
453 0.8 Mon Nov 12 02:28:46 CET 2007
454 - fix "testsuite" again :().
455 - fix check/idle/prepare/child watcher stop.
456 - enourmously many fixes.
457 - rewritten select backend (mostly for win32).
458 - cache socket handles on win32.
459 - provide considerably finer control over configuration.
460
461 0.7 Fri Nov 9 20:37:58 CET 2007
462 - move AnyEvent adaptor into the AnyEvent module.
463 - use private copy of evdns.[ch].
464 - many minor fixes.
465
466 0.6 Thu Nov 8 18:23:43 CET 2007
467 - (libev) better native win32 support.
468 - fix idle watchers.
469 - implement and document periodic reschedule callbacks.
470 - do not run dns test on !linux platforms (actually to exclude win32).
471 - fix (unused in EV :) poll backend.
472
473 0.51 Tue Nov 6 19:50:22 CET 2007
474 - fix kqueue/poll compilation issue.
475 - work around design issues in kqueue.
476 - enable kqueue by default, seems to work.
477
478 0.5 Tue Nov 6 17:37:44 CET 2007
479 - add signal and pid mutators.
480 - add rstatus/rpid accessors.
481 - updated libev (lower cost for clock monotonic).
482 - support event priorities.
483 - try to find SIG_SIZE on perls that don't have it (Slaven Rezic).
484 - improved signal handling, fixed child watchers.
485 - experimentally add kqueue backend, completely untested.
486 - ported to cygwin and native win32.
487
488 0.1 Thu Nov 1 18:29:22 CET 2007
489 - replaced libevent by libev (total rewrite).
490 - many bugfixes w.r.t. libevent.
491 - new watcher types: periodic, check, prepare, child, idle.
492 - performance optimisations.
493 - added interactive configuration.
494 - added fork support.
495
496 0.03 Mon Oct 29 20:52:50 CET 2007
497 - add timed_io convenience constructors.
498 - improve documentation.
499 - support signal names in addition to signal numbers.
500 - support signal anyevent watchers.
501 - vastly improved testsuite (its all relative :).
502 - add EV::MakeMaker, beginning of C-level API.
503 - force strings to byte form.
504
505 0.02 Sun Oct 28 07:40:21 CET 2007
506 - call $EV::DIED in case a callback throws an exception.
507 - add const char * to typemap for possible 5.6 compatibility.
508
509 0.01 Sat Oct 27 19:10:18 CEST 2007
510 - initial release.
511
512 0.00 Fri Oct 26 11:12:57 CEST 2007
513 - original version; cloned from JSON::XS
514