ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/Changes
(Generate patch)

Comparing AnyEvent/Changes (file contents):
Revision 1.131 by root, Thu May 29 17:51:33 2008 UTC vs.
Revision 1.293 by root, Sat Jul 18 22:24:17 2009 UTC

1Revision history for Perl extension AnyEvent. 1Revision history for Perl extension AnyEvent.
2 2
3 - work around signal handling races in Event and (...) Event::Lib.
4 - try to align signal-race timer to full-second boundaries.
5 - work around Tk not liking negative timeouts.
6 - don't complain of different grades of environmental unfriendlyness
7 in IO::ASync.
8
94.85 Sat Jul 18 06:16:14 CEST 2009
10 - nail the signal race problem in perl once and for all
11 (see $AnyEvent::MAX_SIGNAL_LATENCY).
12 - take advantage of Async::Interrupt if it is available.
13 - load Time::HiRes and Guard modules on demand only.
14 - add optional/recommended modules section to AnyEvent
15 documentation.
16 - reduce memory usage considerably (and reduce startup penalty)
17 by not using "strict", "warnings" and "overload" modules.
18 - work around buggy windows/openbsd perls and provide EBADMSG
19 and EPROTO ourselves when missing.
20 - improve perl 5.6 compatibility of the core event loop.
21 - made Net::SSLeay version 1.33 a soft requirement.
22
234.83 Fri Jul 17 16:56:26 CEST 2009
24 - implement AnyEvent::Socket::getprotobyname.
25 - AnyEvent::CondVar's will now detect recursive blocking
26 waits and will croak, as too many people fall into
27 this trap.
28 - AnyEvent::Handle will now call ->destroy on itself after
29 executing the on_error callback, instead of doing some
30 half-baked internal shutdown, for fatal errors.
31 - clarify on_eof behaviour w.r.t. the read queue and
32 on_read callbacks.
33 - ignore some possible spurious wake-ups in tcp_connect.
34
354.82 Sat Jul 11 00:34:55 CEST 2009
36 - POE and Event backends didn't accept some callable objects as
37 callbacks.
38 - use Config module instead of POSIX module to detect signal names
39 in AnyEvent::Strict and AnyEvent::Impl::EventLib, as the POSIX
40 module doesn't even have all POSIX signals :/.
41 - use more workarounds around the many refcnt/corruption bugs in
42 Event::Lib.
43 - work around a race condition in perl's select, causing t/03_child.t
44 to rarely fail.
45
464.81 Thu Jul 9 10:30:30 CEST 2009
47 - AnyEvent::Handle didn't properly diagnose write errors
48 (it expected -1 from syswrite, how lame... :).
49 - support file descriptors in addition to file handles
50 in AnyEvent->io.
51 - new env variables: PERL_ANYEVENT_RESOLV_CONF,
52 PERL_ANYEVENT_MAX_OUTSTANDING_DNS, PERL_ANYEVENT_CA_FILE
53 and PERL_ANYEVENT_CA_PATH.
54 - provide a sensible synopsis section for AnyEvent::TLS.
55 - add a "supported backends" section to the manpage.
56 - added simple io watcher test to testsuite, using a
57 portable_socketpair.
58 - tried to improve the stability of the Event::Lib backend,
59 YMMV.
60
614.8 Mon Jul 6 23:45:16 CEST 2009
62 - AnyEvent::DNS did not properly follow CNAME records with
63 uppercase targets.
64 - AnyEvent::DNS would errornously return AAAA records
65 with v4 mapped addresses (a faulty record) as ipv4 addresses,
66 causing AnyEvent::Socket to throw an exception.
67 - added new module AnyEvent::TLS for easier SSL/TLS context
68 creation, with many options including hostname verification,
69 secure default configuration, lots of documentation and,
70 predefined diffie-hellman keys for perfect forward security
71 and much more. get it while it's still fresh!
72 - use AnyEvent::TLS in AnyEvent::Handle for context management.
73 - load AnyEvent::Handle only on demand in AnyEvent::DNS,
74 so AnyEvent::Socket users have smaller memory footprint
75 in the common case.
76 - add AnyEvent::Handle->push_shutdown method.
77 - add an additional error message parameter to AnyEvent::Handle's
78 on_error callback (for TLS, $! is still available).
79 - add AnyEvent::Handle on_starttls/on_stoptls callbacks.
80 - make AnyEvent::Handle more robust against early conenction
81 failures (during new), and return C<undef> in that case
82 from the constructor.
83 - AnyEvent::Handle will now try to load only JSON::XS first,
84 then fall back to JSON.
85 - format_ipv4/format_ipv6 are now exported by default, for symmetry,
86 and because it was documented that way.
87
884.451 Fri Jul 3 00:28:58 CEST 2009
89 - do not clear rbuf when shutting down an AnyEvent::Handle
90 object - doing so breaks AnyEvent::HTTP.
91
924.45 Mon Jun 29 22:59:26 CEST 2009
93 - a write error could cause AnyEvent::Handle to create
94 an I/O watcher with an undefined $fh.
95 - special-case mapped ipv4 addresses in both
96 AnyEvent::Socket::format_address and parse_address,
97 to treat them just like ipv4 addresses.
98 - updated and overhauled the AnyEvent::Intro doc.
99 - implement AnyEvent::Socket::format_ipv4/ipv6.
100 - slightly speed up portable_pipe/socketpair.
101 - expand condvar begin/end documentation.
102
1034.42 Fri Jun 26 08:32:18 CEST 2009
104 - preliminary and neccesarily incomplete support for IO::Async.
105 - reset SIGCHLD to DEFAULT when AnyEvent is loaded, in
106 case it was set to IGNORE, to ensure we can catch child statuses
107 even when the calling env acts stupidly.
108 - updated benchmarks with IO::Async, which performs very well.
109
1104.412 Wed Jun 24 01:35:57 CEST 2009
111 - support an "untaint" attribute for AnyEvent::DNS
112 and set it on the default resolver.
113 - implement and document AnyEvent::Impl::Perl::loop.
114 - remove all anyevent-env variables from %ENV
115 when running in tainted mode.
116 - mention and extend the IO::Lambda benchmark.
117
1184.411 Sun Jun 7 18:48:02 CEST 2009
119 - do not try to use F_SETFD on windows.
120
1214.41 Thu May 14 06:40:11 CEST 2009
122 - work around issues in older perls (5.8.0?) when
123 a signal handler is deleted from the %SIG hash.
124 - use POSIX::_exit in child test, to avoid running
125 destructors.
126 - speed up CHLD handling by relying on SIGCHLD being
127 synchronously delivered, even when we roll our own
128 implementation.
129 - AnyEvent::DNS: add the "dname" resource record name
130 for cosmetic reasons.
131
1324.4 Sun Apr 26 20:12:33 CEST 2009
133 - implemented idle watchers, where applicable.
134 - AnyEvent->time died when Event backend was in use.
135 - fix a memleak in the Tk backend.
136 - sped up Tk timer handling.
137 - clip negative "after" values to 0 in AnyEvent::Impl::Event
138 to avoid spamming out warning messages.
139 - fix Qt timers without interval.
140 - avoid Qt zero-timeout special case, in old libqt's.
141
1424.352 Mon Apr 20 16:31:11 CEST 2009
143 - fix AnyEvent::Strict error messages for child watchers.
144 - fix/update Makefile.PL "recommends" versions.
145 - add AnyEvent->now_update.
146
1474.351 Sat Apr 11 07:56:14 CEST 2009
148 - actually make the signal pipe work under win32.
149 - localise $! in signal handler to avoid changing $!, although
150 perl itself does not seem to save/restore errno either.
151 - set the cloexec flag on the signal pipe (normally set by perl too).
152
1534.35 Fri Mar 27 11:48:20 CET 2009
154 - event models relying on AnyEvent's signal watcher emulation did
155 invoke the callback asynchronously, contradicting documentation
156 and causing signals to get lost (this includes AnyEvent's own
157 event loop). AnyEvent now uses the standard pipe trick to make
158 callback execution synchronous to the event loop.
159 - AnyEvent::Handle didn't free TLS context data on DESTROY
160 (patch by Pavel Shaydo).
161 - work around the ever-incompatibly-changing API of MakeMaker.
162 - document that changing global variables without restoring them
163 is a bad idea in Perl (noted by Adam Rosenstein).
164 - AnyEvent::Strict now barfs if ->io is passed a file.
165
1664.34 Thu Feb 12 18:32:45 CET 2009
167 - separately buffer TLS read data, as otherwise the read queue could
168 deadlock as receiving data is not expected while draining the
169 read queue (which cna only happen with TLS).
170 - raise EBADMSG error on JSON decoding errors.
171 - fix some minor manpage bugs (reported by Maximilian Gaß).
172 - speed up select bitmask parsing quite a bit in the pure perl
173 backend.
174 - use CORE::select instead of just select in AnyEvent::Impl::Perl.
175
1764.331 Tue Jan 6 21:07:25 CET 2009
177 - socketpair fails on many vista machines because vista has
178 completely broken accept/getpeername and getsockname functions,
179 so we provide our own socketpair emulation that kind of works
180 (AnyEvent::Util::portable_pipe).
181 - new function: AnyEvent::Util::portable_socketpair.
182 - take advantage of the Guard module if it exists.
183
1844.33 Fri Nov 21 02:35:40 CET 2008
185 - AnyEvent::Strict did errornously flag a fileno of 0 as
186 illegal.
187 - reduce memory usage and slightly speed up the pure perl backend
188 by only storing the file descriptor, not the file handle.
189 - add missing autocork method to AnyEvent::Handle (reported
190 by Adam Rosenstein).
191 - AnyEvent::DNS->resolve errornously documented an $rcode result
192 argument, but there isn't (spotted by Henrik Krohns).
193 - the naked truth about Tk - it's basically unmaintained.
194
1954.32 Mon Nov 3 22:46:32 CET 2008
196 - fix AnyEvent::Socket::resolve_sockaddr to properly support
197 unix sockets again and choose a proper default for
198 the socket type.
199 - fix call to resolve_sockaddr in tcp_connect.
200
2014.31 Thu Oct 30 04:41:48 CET 2008
202 - implemented AnyEvent::Handle->destroy method.
203 - hint about unexpected effects in TLS mode.
204 - speed up AnyEvent::Impl::Perl by using more arrays
205 instead of hashes without the slightest loss of readability :)
206 - work around a perl argument refcounting bug.
207 - with some perl patches applied, AnyEvent now seems leak-free.
208
2094.3 Fri Oct 3 09:18:43 CEST 2008
210 - AnyEvent will now install a no-op signal handler for SIGPIPE,
211 unless one has been installed already.
212 - warn about not loaidng AnyEvent::Impl::POE early enough
213 (patch by Adam Rosenstein).
214 - fixed a great number of bugs and corner cases in AnyEvent::Handle:
215 - fix a bug in where in SSL connect mode, the
216 client would first wait for some data by the server and
217 otherwise hang. (reported and analyzed in an absolutely
218 exemplary manner by Adam Rosenstein).
219 - fix a bug in where SSL EOF would not be treated
220 as stream EOF, putting the connection into a hung state.
221 (reported and analyzed in an absolutely exemplary manner by Adam
222 Rosenstein).
223 - fix a potential segfault when the TLS context
224 would go missing in a read callback (e.g. due to stoptls) -
225 Net::SSLeay of course makes no type checking whatsoever.
226 - AnyEvent::Handle will not stop the read watcher in TLS mode.
227 - AnyEvent::Handle->stoptls will send a TLS close notify
228 instead of simply destroying the stream now.
229 - fix a bug where large blocks of data written in TLS mode
230 would not be sent unless triggered by receives.
231 - on_drain will now take the tls write buffer into account.
232 - SSL operations have been streamlined a bit and should be faster
233 now, more to come, though.
234 - added a FAQ section, will document nontrivial issues in there.
235
2364.234 Mon Sep 29 04:08:13 CEST 2008
237 - fix child watcher documentation: only child exits will be reported,
238 no trace events.
239 - mention SIGPIPE in AnyEvent::Handle.
240 - perl backend will now use POSIX::times as monotonic clock
241 when available and the monotonic clock option is not.
242 - run even without Time::HiRes in some cases now, but do not
243 provide sub-second accuracy (all *supported* perl versions have
244 Time::HiRes).
245
2464.233 Fri Aug 22 01:48:05 CEST 2008
247 - fix a bug in the testsuite, causing a hang.
248 - clarified lots of AnyEvent::Handle constructor arguments.
249
2504.232 Thu Aug 21 20:44:25 CEST 2008
251 - fix a bug in AnyEvent::Handle that could cause two fatal error
252 callbacks on EOF, which caused AnyEvent::HTTP to signal success twice
253 (testcase by Leon Brocard).
254 - clarified on_eof/on_error documentation a bit.
255
2564.231 Tue Jul 29 13:12:15 CEST 2008
257 - remove some debugging code left in AnyEvent::Util::fork_call
258 (and no, it's impossible to implement with the broken windows
259 perls without resource leaks or worse).
260
2614.23 Tue Jul 29 12:19:59 CEST 2008
262 - document the first parameter passed to condvar callbacks to be
263 the callback.
264 - add AnyEvent::Socket::{ntoa,aton} aliases.
265 - optimize the AE::Handle->push_read (line) for the default
266 eol marker.
267 - optimize push_read (packstring|storable) for small packets.
268 - invoke on_error callback when no on_eof callback is set.
269 - fix a bug in push_read (storable) of unknown impact.
270
2714.22 Sun Jul 20 16:34:13 CEST 2008
272 - new function AnyEvent::Socket::parse_hostport.
273 - as the bulkheads at microsoft can't even get getprotobyname reliably
274 working on their shitty fucking broken os we need to hardcode
275 some common protocol numbers in AnyEvent::Socket. How can
276 people even bother with such a pile of shit as windows.
277
2784.21 Thu Jul 17 14:40:05 CEST 2008
279 - INCOMPATIBLE CHANGE: AnyEvent::Util::fork_call now has a prototype
280 which is incompatible to previous invocation syntax.
281 - work around more windows perl bugs in fork_call. I cannot imagine
282 why anybody would bother implementing fork in such an obviously
283 unusable way.
284 - avoid calling $do_retry if the request has already finished in
285 AnyEvent::DNS, thus avoiding an exception (reported by Anatoly
286 K. Sharifulin).
287
2884.2 Sat Jul 12 22:42:11 CEST 2008
289 - support an "interval" argument for repeating timers.
290 - fix a bug in the pure perl event loop that caused timers to
291 be delayed under some circumstances.
292 - implement optional argument checking via PERL_ANYEVENT_STRICT.
293 - not importing anything from Event causes it to malfunction
294 and not use Time::HiRes, work around this bug.
295 - more bug workarounds against the endlessly broken Tk module,
296 seems to work now on 32 bit machines, but less so on 64 bit.
297 - minor optimisations applied to most backends.
298
2994.161 Fri Jul 4 14:24:48 CEST 2008
300 - fixed the t/handle/02_write.t, it read after write, with the
301 assumption that all data could be written before read
302 (reported by Jim Razmus).
303
3044.160 Thu Jul 3 04:02:21 CEST 2008
305 - re-registering signal watchers after unregistering one did
306 not work if a backend falls back on AnyEvent's default
307 implementation (also affected child watchers).
308 - new AnyEvent::Handle options: autocork and no_delay.
309
3104.152 Sun Jun 22 14:15:44 CEST 2008
311 - allow for 32-bit perls that implement shifts differently
312 on different architectures in parse_ipv4 (reported and
313 analysed by Keiichi DAIBA).
314
3154.151 Fri Jun 6 17:34:24 CEST 2008
316 - make sure specifying _only_ on_read and never pushing reads
317 works.
318
3194.15 Fri Jun 6 13:00:46 CEST 2008
320 - the pure perl backend would keep some watchers alive when more than
321 one watcher was registered for the same fd.
322 - new "packstring" and "storable" read and write types
323 for AnyEvent::Handle.
324 - allow on_eof handler to be called after on_error with EPIPE returns.
325 - do not immediately call on_read callback in handle constructor.
326
3274.14 Thu Jun 5 20:29:31 CEST 2008
328 - Fixed a bug in DNS SRV priority sorting.
329 - AnyEvent::Util::guard now reports runtime errors while
330 executing the guard block as warnings.
331 - handle 0-byte-reads just before EOF correctly in AnyEvent::Handle.
332
3334.13 Thu Jun 5 00:47:59 CEST 2008
334 - AnyEvent::DNS only followed cname chains with length 2,
335 contrary to documentation. bumped it up to 10, thanks to
336 microsoft, the current broken-dns-config-king.
337 - AnyEvent::DNS didn't check for socket return status
338 but instead relied on perl not creating filehandles in that
339 case - too bad it gives you a bogus file handle (reported
340 and analysed by Vladimir Timofeev).
341 - fix queue management logic in AnyEvent::Handle:
342 when on_read was registered, the queue was empty
343 and no progress could be made AnyEvent::Handle would
344 enter an endless loop.
345 - correctly start reading again when the handle became
346 busy again after idling.
347 - correctly treat tls shut-downs as EOF condition
348 (for the time being, would be nice to have a callback for that).
349 - correctly call eof callback under all conditions
350 (hopefully).
351 - the timeout callback did not expect that $self can go
352 away any time.
353
3544.12 Tue Jun 3 10:58:04 CEST 2008
355 - include AnyEvent::Intro, a tutorial for anyevent,
356 anyevent::socket and anyevent::handle.
357 - allow more options in on_error.
358
3594.11 Fri May 30 23:42:25 CEST 2008
360 - INCOMPATIBLE CHANGE: replace ptr by real PTR lookup, provide
361 reverse_lookup and reverse_verify to replace it, support
362 v4mapped and v4compat addresses.
3 - provide more documentation for the resolver class. 363 - provide more documentation for the resolver class.
4 - really replace longest run of :0: by :: in format_address, 364 - really replace longest run of :0: by :: in format_address,
5 also properly convert :: and ::1 again. 365 also properly convert :: and ::1 again.
6 - support naptr name and decode it 366 - support NAPTR record name and decode it.
367 - implement random weight sampling for SRV records, as per
368 rfc 2782.
369 - correctly abort on srv-record targets of ".".
370 - added AnyEvent::DNS::wait_for_slot.
371 - in the unlikely event of a virtual circuit connection
372 being invalidated by a delayed udp reply, AnyEvent::DNS
373 could die. this has been fixed.
374 - plug a probable memleak in the DNS vc code.
375 - use configured timeout also for VC request phase.
376 - implement timeout and max_outstanding methods
377 for resolver class.
378 - update version numbers in all modules.
7 379
84.1 Thu May 29 05:45:40 CEST 2008 3804.1 Thu May 29 05:45:40 CEST 2008
9 - INCOMPATIBLE CHANGE: renamed xxx_ip functions to xxx_address 381 - INCOMPATIBLE CHANGE: renamed xxx_ip functions to xxx_address
10 which mirrors their purpose better (old names still available 382 which mirrors their purpose better (old names still available
11 for a while). Also moved AnyEvent::DNS::addr to 383 for a while). Also moved AnyEvent::DNS::addr to
83 - support service names in tcp_connect and tcp_server. 455 - support service names in tcp_connect and tcp_server.
84 - work around netbsd/openbsd bug causing unix sockets not to 456 - work around netbsd/openbsd bug causing unix sockets not to
85 become writable until empty. 457 become writable until empty.
86 - only make a dummy read for error detection when getpeername 458 - only make a dummy read for error detection when getpeername
87 returns ENOTCONN. 459 returns ENOTCONN.
88 - defend AnyEvent::Util::inet_aton against Coro::LWP brutal 460 - defend AnyEvent::Util::inet_aton against Coro::LWP's brutal
89 override. 461 override.
90 - new AnyEvent::Guard::cancel. 462 - new AnyEvent::Guard::cancel.
91 463
923.5 Sat May 17 23:17:14 CEST 2008 4643.5 Sat May 17 23:17:14 CEST 2008
93 - gracefully deal with systems not defining CLOCK_MONOTONIC 465 - gracefully deal with systems not defining CLOCK_MONOTONIC
107 479
1083.41 Sun May 11 19:53:13 CEST 2008 4803.41 Sun May 11 19:53:13 CEST 2008
109 - work around a bug in perl 5.8.8's local. Reported by Yi Ma Mao. 481 - work around a bug in perl 5.8.8's local. Reported by Yi Ma Mao.
110 482
1113.4 Sun May 11 00:29:25 CEST 2008 4833.4 Sun May 11 00:29:25 CEST 2008
112 - complete re-implementation of condvars with a hopefully much mroe useful 484 - complete re-implementation of condvars with a hopefully much more useful
113 API (backward compatible functions exist but are undocumented). 485 API (backward compatible functions exist but are undocumented).
114 - AnyEvent::Handle fully rewritten with a hopefully more powerful API 486 - AnyEvent::Handle fully rewritten with a hopefully more powerful API
115 (still subject to change). 487 (still subject to change).
116 - take advantage of CLOCK_MONOTONIC, if available, in AnyEvent::Impl::Perl. 488 - take advantage of CLOCK_MONOTONIC, if available, in AnyEvent::Impl::Perl.
117 - provide AnyEvent::post_detect and @AnyEvent::post_detect, which 489 - provide AnyEvent::post_detect and @AnyEvent::post_detect, which

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines