AnyEvent
view release on metacpan or search on metacpan
- support CAA records, based on patch by Steve Atkins.
- add freenom and cloudflare nameservers as dns fallback.
- AnyEvent::Strict would not properly ward against io watchers
on files when the handle passed was a file descriptor.
- document "internal" variables used by the dns en-/decoder to allow
enterprising users to extend them in a semi-official way.
7.14 Sat Jun 24 01:44:19 CEST 2017
- fix a crash bug in AnyEvent::Handle with openssl 1.1.0 (patched
by Paul Howarth and apparently tracked down by Mike McCauley).
- AnyEvent::Handle->keepalive was documented (and defined) twice
(found by Matt Merhar).
- AnyEvent::Socket::tcp_bind/tcp_server would immediately unlink a unix
listening socket unless a guard is used. Change this so that no
cleanup will be performed unless a guard is used and document this more
clearly.
- make tcp_bind/tcp_server error messages more regular.
- work around latest perl upstream breakage - this time, perl5porters were
apparently bullied by a bogus CVE (CVE-2016-1238), and since distros
stupidly apply anything that has "security fix" stamped on it, it's likely
going to be a problem in practise (and working around it is trivial on
windows and unix).
- add TCP_FASTOPEN/MSG_FASTOPEN and MSG_NOSIGNAL/MSG_MORE/MSG_DONTWAIT
to constants.
- update warnings to common::sense 3.74 standards.
7.13 Sat Sep 17 04:31:49 CEST 2016
- Only call tlsext_host_name for non-empty common names (reported
by Maxime Soulé).
- log a (single) notice message if SNI is not supported.
- upgrade to UTS-46:9.0.0 draft and switch to non-transitional
behaviour, beating thunderbird, ie, edge, chrome and safari to it :)
(see also https://bugzilla.mozilla.org/show_bug.cgi?id=1218179)
- turns out the UTS-46 IDNA testcase failures were indeed bugs in the
testcases and the specification and not in the code - the post-9.0.0
unicode files have all known problems fixed, so finally the AnyEvent
IDNA implementation can pass the full IDNA testsuite - without needing
a single fix :)
- guarantee (and document) that condvar callbacks will be removed
on invocation - important to avoid circular references.
7.12 Wed Jan 27 19:12:26 CET 2016
- use common name as hostname for tls connects, if Net::SSLeay
supports SNI.
- fix documentation of tls_autostart read type in AnyEvent::Handle,
analyzed by Felix Ostmann.
7.11 Thu Jul 16 14:36:00 CEST 2015
- AnyEvent::Socket::parse_ipv6 could accept malformed ipv6
addresses (extra "::" at end and similar cases).
- add a more explicit warning to AnyEvent::Handle that it doesn't
work on files, people keep getting confused.
- new function AnyEvent::Socket::tcp_bind.
- new functions AnyEvent::fh_block and AnyEvent::fh_unblock.
- aligned ipv6 address formatting with RFC 5952 (by not shortening
a single :0: to ::).
- added stability canary support.
7.09 Sat May 2 16:38:53 CEST 2015
- AnyEvent::Debug called an internal function (AnyEvent::Log::ft)
that was renamed to AnyEvent::Log:format_time. uinder its old name
(analyzed by Michael Stovenour).
- update AnyEvent::DNS fallback resolver addresses:
seems google effectively killed most other free dns resolvers,
so remove them, but add cable and wireless (ecrc) since it was
stable for 20 years or so, official or not, and there should be
an alternative to google.
- perl5porters broke windows error codes in 5.20, and mapped
WSAEWOULDBLOCK on the (different) EWOULDBLOCK error code, and
WSAEINPROGRESS into the incompatible ERINPROGRESS code, probably
because they were so cool. They probably broke other error codes
for no reason, too, but I didn't care for checking, it's too
depressing. This version only works around the WSAEWOULDBLOCK
issue, because I don't have a nice way to work around the
WSAEINPROGRESS bug.
7.08 Wed Dec 10 05:27:17 CET 2014
- work around a newly introduced bug in Socket 2.011 (an
errornous sun_length check) (analyzed by Maxime Soulé).
- AnyEvent::TLS didn't load (but refer to) AnyEvent::Socket
(analyzed by Ben Magistro).
- AnyEvent::Strict will now confess, not croak. This is in line with
it being a development/debugging tool.
- work around a number of libglib bugs (debug builds of libglib enforce
certain undocumented behaviour patterns such as not being able to
remove a child watch source after it has fired, which we will try
to emulate to avoid "criticals". what where they thinking...).
- mention json security issues in AnyEvent::Handle, now that Douglas
Crockford has foolishly and incompatibly changed JSON.
- changed default dns resolver "max_outstanding" value from 1 to 10,
the latter beinfg the intended value all along
(reported by Ilya Chesnokov).
- added new "AnyEvent::Impl::UV" interface module to the UV event lib
(written by Mike Lowell).
7.07 Tue Dec 17 17:45:02 CET 2013
- the documentation for custom tls verify schemes was wrong. make it agree
with the code (reported by Maxime Soulé).
- added cbor read and write types to AnyEvent::Handle (using CBOR::XS).
- work around an API change in openssl that could cause wrong tls connection
aborts, likely on windows only (analyzed by sten).
- calling AnyEvent->now_update with AnyEvent::Impl::Perl caused an
endless loop (reported by Dietrich Rebmann).
- add tlsv1_1 and tlsv1_2 protocols to AnyEvent::TLS
(patch by Maxime Soulé).
- document AnyEvent::Impl::IOAsync::set_loop and
$AnyEvent::Impl::IOAsync::LOOP. Though only documented now, this
functionality has _always_ been available.
- force a toplevel domain name in t/81_hosts.t (analyzed by
David Jack Wange Olrik).
- document that AnyEvent::Log uses AnyEvent::IO.
- warn about AnyEvent::Filesys::Notify performance.
- praise the joys of AnyEvent::Fork::*.
- time for an =encoding directive.
- do no longer use JSON to create a default json coder, use
JSON::XS or JSON::PP directly.
7.05 Wed Aug 21 10:38:08 CEST 2013
- uts46data.pl couldn't be found due to wrong naming of the file
(reported by Fulko Hew).
- handle lone \015's properly in AE::Handle's default line read
6.14 Tue Jan 31 20:00:24 CET 2012
- AnyEvent::Impl::Tk was broken due to a mysterious "die" inside,
probably an editing mistake (reported by Darin McBride).
6.13 Thu Jan 12 07:27:01 CET 2012
- AnyEvent::Util::fork_call checked for POSIX availability in the wrong way,
causing it to fail if POSIX wasn't loaded already (analysed by Rock Power).
- AnyEvent::Handle::push_read (line => did pass $1 directly, so
regex-matching inside the callback would change the parameter, despite
$1 being dynamically scoped per-block. this perl bug is now being
worked around (testcase by Cindy Wang).
6.12 Mon Dec 12 13:21:10 CET 2011
- $! was clobbered by subsequent calls in tcp_connect, due to
the postpone not saving/restoring it (analyzed by Richard Garnish).
6.11 Tue Nov 22 10:36:05 CET 2011
- Tk cannot create windows when tainted unless you set a title, so
set a dummy title for AnyEvent's dummy mainwindow. How dummy.
- escape any nonprintable/nonascii characters when stringifying
backtraces.
- log the reason loading an interface module fails to load at level debug.
6.1 Tue Oct 4 19:44:30 CEST 2011
- INCOMPATIBLE CHANGE: the default log level is now "4" (error
and above), and some messages inside AnyEvent have been elevated
to higher log levels to print by default.
- AnyEvent::log, unlike AnyEvent::Log::log, did not always exit on fatal.
- work around yet another signal race bug, newly introduced by POE. My
how that module sucks.
- add google public ipv6 dns as fallback servers, so AE::DNS can finally
support ipv6-only operation even with defaults (also use ::1 instead
of 127.0.0.1).
- give better guidelines on how to chose a logging level.
- AnyEvent::Log can now cap (limit) log message priority by context.
- AE::log will now save and restore $! and $@, so callers don't have to.
- AE::Strict now checks that registered fds are still valid at regular
intervals.
- skip frequently called 'require' calls if the module appears loaded.
- increase signal latency test timer considerably for poor little osx,
which can't be bothered with basic posix functionality such as signal
delivery.
- mention some debugging aids in the tutorial.
- new env variable PERL_ANYEVENT_MAX_SIGNAL_LATENCY.
- private (%namespace) log contexts in PERL_ANYEVENT_LOG now have the name
of the context as title.
- AnyEvent::Strict would not restore read-write access to $_ when a callback
died - this is a user bug, but since AE::Strict exists to help dbeugging...
- detect the extremely evil IO::Async::Loop::AnyEvent module and refuse
to work with it - the author is well aware of the issues but refuses
to fix them. This extreme step has been taken because the module actively
attacks the goals of AnyEvent and makes it harder for module authors to use
AnyEvent.
6.02 Fri Aug 26 20:08:31 CEST 2011
- log_to_syslog now accepts facility strings.
- log_to_syslog would not allow facilities - "$facility|$level"
*literally* means that string. sheesh.
- the CPAN parser got confused and thought we provide Sys::Syslog, try
to work around.
- renamed AnyEvent::Impl::FLTK2 to FLTK.
6.01 Fri Aug 26 07:04:11 CEST 2011
- INCOMPATIBLE CHANGE: AnyEvent::DNS resource records now include
the TTL as fourth element - this affects ->resolve, ->request
and ->dns_unpack indirectly. Convenience functions such as
AnyEvent::DNS::{a,txt,mx,srv} are not affected, neither is
AnyEvent::Socket.
- INCOMPATIBLE CHANGE: backend authors now should not implement
one_event or loop, but instead the AnyEvent::CondVar::_wait and _poll
methods.
- INCOMPATIBLE CHANGE: verbosity levels have been redefined, see
AnyEvent (PERL_ANYEVENT_VERBOSE) and AnyEvent::Log for details.
- DEPRECIATION: please change
"use AnyEvent::Impl::Perl" to "use AnyEvent::Loop" and
"AnyEvent::Impl::Perl::loop" to "AnyEvent::Loop::run"
in your programs, for future compatibility.
- *blush* idle watcher emulation was borked.
- AnyEvent::Strict now checks the AE::xxx functions as well.
- querying too long domain names would barf deep inside AnyEvent::DNS - since
this is hard to avoid for applications, AnyEvent:.DNS::request now checks for
for too long domain names explicitly and passes an undef to the callback
instead (reported by James Bromberger).
- make AnyEvent::Util more robust against EINTR (analyzed by Andrew Suffield).
- new functions: AnyEvent::postpone, AnyEvent::log.
- new module: AnyEvent::Log, for simple logging needs.
- new env variable, PERL_ANYEVENT_LOG, for fine-grained logging config.
- new env variable, PERL_ANYEVENT_DEBUG_SHELL, to automatically start
a debug shell.
- new env variable, PERL_ANYEVENT_DEBUG_WRAP, to automatically enable
watcher instrumentation/wrapping (see AnyEvent::Debug::wrap).
- new env variable, PERL_ANYEVENT_HOSTS, to override the place where
/etc/hosts can be found.
- an empty PERL_ANYEVENT_RESOLV_CONF now selects the default
configuration.
- env variables can now be specified using AE_xyz instead of
PERL_ANYEVENT_xyz, subject to some rules.
- lots of new AnyEvent::Debug functionality.
- AnyEvent::Strict now checks for modifications of $_ by the callback
(by setting it to readonly while executing the callback, if possible).
- IO::Async sometimes cancels the wrong timer when you call cancel_timer.
Invest extra overhead to work around this peculiar behaviour.
- split the pure perl backend into a loop module and an impl
module (AnyEvent::Loop and AnyEvent::Impl::Perl).
- some read types (regex, netstring, json, storable) could
errornously keep an AE::Handle object alive on their own
(reported by Mohammad Toossi).
- AnyEvent::Socket::resolve_sockaddr and all functions using it now
supports /etc/hosts overrides.
- add more workarounds around child watcher bugs in IO::Async
and (newly introduced) in POE.
- use glib child watchers and try to work around its limitations,
if possible (based on a patch by Kevin Ryde).
- add support for FLTK (fltk2), via AnyEvent::Impl::FLTK2.
- many read types in AnyEvent::Handle would malfunction during
transitions to TLS because of a "delete $self->{rbuf}".
(reported by Gerald Galster).
- improve condvar blocking wait performance (probably only noticable
with faster backends), also make it easier for event loops that
do not support blocking waits.
- PERL_ANYEVENT_MODEL now also allows full module names, although
one watcher was registered for the same fd.
- new "packstring" and "storable" read and write types
for AnyEvent::Handle.
- allow on_eof handler to be called after on_error with EPIPE returns.
- do not immediately call on_read callback in handle constructor.
4.14 Thu Jun 5 20:29:31 CEST 2008
- Fixed a bug in DNS SRV priority sorting.
- AnyEvent::Util::guard now reports runtime errors while
executing the guard block as warnings.
- handle 0-byte-reads just before EOF correctly in AnyEvent::Handle.
4.13 Thu Jun 5 00:47:59 CEST 2008
- AnyEvent::DNS only followed cname chains with length 2,
contrary to documentation. bumped it up to 10, thanks to
microsoft, the current broken-dns-config-king.
- AnyEvent::DNS didn't check for socket return status
but instead relied on perl not creating filehandles in that
case - too bad it gives you a bogus file handle (reported
and analysed by Vladimir Timofeev).
- fix queue management logic in AnyEvent::Handle:
when on_read was registered, the queue was empty
and no progress could be made AnyEvent::Handle would
enter an endless loop.
- correctly start reading again when the handle became
busy again after idling.
- correctly treat tls shut-downs as EOF condition
(for the time being, would be nice to have a callback for that).
- correctly call eof callback under all conditions
(hopefully).
- the timeout callback did not expect that $self can go
away any time.
4.12 Tue Jun 3 10:58:04 CEST 2008
- include AnyEvent::Intro, a tutorial for anyevent,
anyevent::socket and anyevent::handle.
- allow more options in on_error.
4.11 Fri May 30 23:42:25 CEST 2008
- INCOMPATIBLE CHANGE: replace ptr by real PTR lookup, provide
reverse_lookup and reverse_verify to replace it, support
v4mapped and v4compat addresses.
- provide more documentation for the resolver class.
- really replace longest run of :0: by :: in format_address,
also properly convert :: and ::1 again.
- support NAPTR record name and decode it.
- implement random weight sampling for SRV records, as per
rfc 2782.
- correctly abort on srv-record targets of ".".
- added AnyEvent::DNS::wait_for_slot.
- in the unlikely event of a virtual circuit connection
being invalidated by a delayed udp reply, AnyEvent::DNS
could die. this has been fixed.
- plug a probable memleak in the DNS vc code.
- use configured timeout also for VC request phase.
- implement timeout and max_outstanding methods
for resolver class.
- update version numbers in all modules.
4.1 Thu May 29 05:45:40 CEST 2008
- INCOMPATIBLE CHANGE: renamed xxx_ip functions to xxx_address
which mirrors their purpose better (old names still available
for a while). Also moved AnyEvent::DNS::addr to
AnyEvent::Socket::resolve_sockaddr.
- implement AnyEvent->time and AnyEvent->now.
- fix IPv6 support in pack_sockaddr.
- officially un-experimentalise all newly introduced code.
- support unix domain sockets everywhere by specifying
a host of "unix/" and the pathname as service.
- implement an activity timeout in AnyEvent::Handle.
- added a regex read type to AnyEvent::Handle.
- added a json read/write type to AnyEvent::Handle.
- always croak in on_error in AnyEvent::Handle.
- document how to subclass AnyEvent::Handle.
- implement AnyEvent::Util::fork_call.
- add support for IPv6 nameservers and nameserver statements.
- work around _yet_ _another_ windows perl bug in where empty
select masks cause errors in the pure perl backend (this
workaround cannot be implemented for the other event loops,
but EV also works around this).
- supply AnyEvent::Socket::address_type and make good use of it.
- clarify and fix the Handle documentation w.r.t $self vs. $handle
vs. callback arguments.
- add some recommends to the META.yml.
4.05 Mon May 26 19:44:06 CEST 2008
- some platforms ignore the rfc and prepend an extra sa_len member to
the sockaddr structure, cater for those. also use sockaddr_family,
didn't know it was there, but comes in handy for the workaround.
- undo the import WIN32 hack.
4.04 Mon May 26 08:03:31 CEST 2008
- try to work around yet another windows bug: failed connects are reported
as if it were out-of-band data. windows users: you suck. Only
EV, Glib, Event and the pure perl backend can handle this condition.
- optimize write algorithm in AnyEvent::Handle.
- properly parse PERL_ANYEVENT_PROTOCOLS and use the info correctly.
- tcp_connect now properly iterates through all targets.
- check wether IPv6 sockets can actually be created, otherwise, disable ipv6
support entirely. also hardcode some AF_INET6 constants for the
sake of perl 5.8.
- vastly improved nameserver/suffix detection algorithm for windows
(still a hack...)
- try to use a fallback dns server if no dns servers could be found.
- splatter around some local $SIG{__DIE__}'s to work around bad
die handlers.
4.03 Sun May 25 05:05:57 CEST 2008
- work around perl bugs on windows, where perl returns undocumented
error codes for sysread, syswrite etc.
- fix AnyEvent::Handle::unshift_read to really unshift and not push.
- AnyEvent::Handle could sometimes stumble over 0-byte writes.
- fix unpack_sockaddr, now works for AF_INET6 sockaddr's.
- updated documentation.
- lots of workarounds for perl 5.8 quirks.
- implement a more flexible type system for both reads and writes
in AnyEvent::Handle.
- support IPv6 in tcp_server.
- pass local hostname and port to the prepare callback in tcp_server.
- make types extendable in AnyEvent::Handle.
- croak, not die, in AnyEvent::Handle;
- add a benchmark section showing AnyEvent overhead and comparing
the different event loops with each other.
- prefer pure perl over tk when autoprobing, as it's about as fast,
but doesn't crash with many watchers.
- declare Qt support non-experimental.
- clarify the confusing section about the file descriptor being
kept alive.
- document the race between loading of an event module and
child processes exiting.
- support POE as "backend" (with some caveats, POE is not generic
enough, and darn slow).
- support Wx and Prima through POE.
- optimise perl backend to use 20% less memory and take advantage
of typical timeout behaviour. It can now compete with
select/poll-based C event loops in most cases (it is usually
faster than Event and Glib :).
- roughly cut EV memory use in half and increase its speed by 30%,
by removing undocumented functionality. Did something similar
to other event loops where possible.
3.2 Thu Apr 24 10:10:40 CEST 2008
- do not die when anyevent watchers are destroyed while running callbacks
in the pureperl backend (could only happen when two watchers are registered
for the same fh/poll combo).
- support autoloading for child watchers, was broken in all versions.
- implement PERL_ANYEVENT_MODEL env variable.
- (experimental) implement interface to the (very crashy/buggy) Event::Lib module.
- (experimental) implement interface to the Qt module (cannot be autoprobed).
- this release is IO:AnyEvent-proof.
3.12 Tue Apr 22 07:11:46 CEST 2008
- reinstate AUTHOR section that got lost somehow.
- do not hang in the testsuite with badly broken perls (activestate,
strawberry...), but instead diagnose the problem and continue.
- use INT instead of CHLD in an attempt to support broken windows perls
better (this decreases the test quality, unfortunately).
- do not send the signal to the process group
(no problem for CHLD, bad for INT :).
3.11 Sat Apr 19 06:57:31 CEST 2008
- major documentation rework.
- document the fact that child watchers only watch for zombies.
- fix the child watcher example.
3.1 Wed Apr 16 17:09:01 CEST 2008
- work around recurring bugs in Tk by dup'ing filehandles, the
only method with good success chances on Tk (the bugs apparently
don't get fixed anytime soon).
- lift the restriction of only one watcher per fh direction
(as the Tk bug workaround also lifts it and only Tk imposed
such strong limits).
- changed probe order to prefer coro adaptors.
- explain why recursion into the event loop is not supported
unless the backend supports it (only Coro::EV does without
any restrictions...).
- add simple manpages for all backend modules.
3.0 Mon Apr 7 21:30:23 CEST 2008
- Coro::Signal changed semantics, roll our own, also cleaning
up the Coro implementation in general.
- rename Coro backend to CoroEvent.
- add some decision helping paragraph to the manpage that should
help people to decide whether AnyEvent is the right thing for them.
2.9 Mon Jan 28 13:31:54 CET 2008
- update for EV 3.0 API changes.
2.8 Sun Nov 25 15:06:03 CET 2007
- waitpid can validly return 0. accept this fact of life
instead of reporting it to any watchers.
2.7 Fri Nov 23 11:41:14 CET 2007
- force use of AnyEvent::Impl::Perl in testsuite, there is
too much breakage outside AnyEvent.
- deliver signals synchronously in AnyEvent::Impl::Perl
or any other event loop that relies on AnyEvents child
watcher emulation. *Could* help with hanging testsuite
(except when Event or EV are installed).
2.6 Fri Nov 9 20:36:35 CET 2007
- fix bug in testsuite.
- move EV adaptor modules to AnyEvent.
- add Coro+EV adaptor module.
2.55 Tue Nov 6 17:41:32 CET 2007
- add EV to the list of supported event models.
- do not auto-reset pid watchers, pass pid and status to them.
- allow a pid of zero to watch for all children in child watchers.
2.54 Wed Jul 18 17:36:23 CEST 2007
- work around a perl bug that results in
BEGIN not safe after errors--compilation aborted without
any discernible reason or error message by once
again not use'ing strict.
2.53 Sun Jul 8 10:51:53 CEST 2007
- make Glib interface work again (spotted by elmex).
2.52 Wed Mar 7 18:36:16 CET 2007
- child watchers stopped working permanently when
all current child watchers were destroyed.
2.51 Mon Dec 11 21:33:24 CET 2006
- work around bugs in perl where eval "require Module" returns
true even if the module couldn't be loaded :/.
2.5 Mon Dec 11 02:15:28 CET 2006
- avoid $AUTOLOAD because many perls corrupt it.
- AnyEvent::detect forces autodetection.
- implement signal watchers (experimental)
(Tk does not support async signals (<= 804.027 at least),
so they might get delayed indefinitely on Tk).
- implement child watchers (experimental).
- moved default condvar implementation into base module, simplifying
most implementation modules.
2.1 Fri Nov 24 15:50:48 CET 2006
- better docs.
- simple testsuite.
- added AnyEvent->one_event method for special purposes.
( run in 1.521 second using v1.01-cache-2.11-cpan-39bf76dae61 )