2598 Commits

Author SHA1 Message Date
Ross Lagerwall
029a3db354 Require at least Python 2.4 for check-dumpevents.py. 2012-03-26 20:12:45 +02:00
Nick Mathewson
d8a7853ed0 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-25 18:56:34 -04:00
Nick Mathewson
98e9119fab Fix a typo in the bufferevent documentation 2012-03-25 18:56:15 -04:00
Nick Mathewson
c24f91ad97 Test more bufferevent_ratelim features 2012-03-25 18:55:31 -04:00
Nick Mathewson
c5732fddb0 Add event_base_get_running_event() to get the event* whose cb we are in 2012-03-25 18:54:40 -04:00
Nick Mathewson
5626092c58 More coverage on reinsert_timeout tests 2012-03-23 19:30:02 -04:00
Nick Mathewson
8d08ccee09 Make test-dumpevents build on Linux 2012-03-23 19:29:45 -04:00
Nick Mathewson
8c36acd0b0 Fix a nasty bug in event_queue_reinsert_timeout()
What was I thinking?  The old function could handle heap-to-heap
transitions, and transitions within the same common timeout queue, but
it completely failed to handle heap/queue transitions, or transitions
between timeout queues.

Now, alas, it's complicated.  I should look hard at the assembly here
to see if it's actually better than the alternatives.
2012-03-23 18:42:56 -04:00
Nick Mathewson
7afe48aab8 Add a unit test for event_base_dump_events()
This function uses a C program to generate its output, and then uses a
Python program to check it for correctness.  On systems without
Python, we just make sure that the C program doesn't crash.

It's likely that we should be requiring some particular python version.
This is an alpha, though: I'm sure somebody will tell us which.
2012-03-23 17:56:23 -04:00
Nick Mathewson
0343d8fec5 event_base_dump_events: Report active events tersely, and note internal events 2012-03-23 17:53:08 -04:00
Nick Mathewson
172896831c Fix compilation of evutil_rand on osx 2012-03-23 17:27:18 -04:00
Nick Mathewson
1d8240c04a Merge pull request #47 from rosslagerwall/patch-1
Fix typo in whatsnew-2.1.txt
2012-03-23 11:24:58 -07:00
Ross Lagerwall
6aa4801569 Fix typo in whatsnew-2.1.txt 2012-03-23 12:35:33 +02:00
Nick Mathewson
15296d06bd Use libevent_global_shutdown() to clean up in unit tests.
This bumps coverage up by a few lines. Every little bit helps.
2012-03-22 18:24:48 -04:00
Nick Mathewson
4fe81e238b Distribute whatsnew-2.1.txt. 2012-03-22 18:11:01 -04:00
Nick Mathewson
f98c1588c2 Fix another bug from rebase of libevent_global_shutdown patch
This one affected machines without a builtin arc4random
2012-03-22 17:33:17 -04:00
Nick Mathewson
7ae08e5031 Write a first draft of whatsnew-2.1.txt 2012-03-22 17:33:12 -04:00
Nick Mathewson
107272b681 Tweak changelog for 2.1 even more 2012-03-22 15:28:00 -04:00
Nick Mathewson
7c15a93f86 Add more things to the 2.1 changelog 2012-03-22 15:10:50 -04:00
Nick Mathewson
33b2821c31 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-22 14:35:56 -04:00
Nick Mathewson
25a424fb8c Add an empty changelog section for 2.0.19-stable 2012-03-22 14:35:23 -04:00
Nick Mathewson
ee412cffe0 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-22 14:34:59 -04:00
Nick Mathewson
f0fb2c271c Bump version to 2.0.18-stable-dev 2012-03-22 14:34:01 -04:00
Nick Mathewson
cb528ed472 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-22 14:13:28 -04:00
Nick Mathewson
75401035f0 Bump version to 2.0.18-stable release-2.0.18-stable 2012-03-22 14:00:54 -04:00
Nick Mathewson
d1a904d0eb Merge remote-tracking branch 'origin/patches-2.0' 2012-03-22 13:48:33 -04:00
Nick Mathewson
1f50f3a3a8 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-22 13:47:30 -04:00
Nick Mathewson
90c0a7df84 Add credits to README 2012-03-22 13:47:01 -04:00
Nick Mathewson
7734292652 Changelog for libevent 2.0.18-stable 2012-03-22 12:54:10 -04:00
Nick Mathewson
3e9612cd81 Merge branch 'global_shutdown_rebased_v2' 2012-03-22 12:17:30 -04:00
Mark Ellzey
041ca00c75 Add a new libevent_global_shutdown() to free all globals before exiting.
Mark Ellzey added a function libevent_shutdown() which calls a set of
private functions:

       * event_free_globals()
       * event_free_debug_globals()
       * event_free_debug_globals_locks()
       * event_free_evsig_globals()
       * evsig_free_globals()
       * evsig_free_globals_locks()
       * evutil_free_globals()
       * evutil_free_secure_rng_globals()
       * evutil_free_secure_rng_globals_lock()

Nick tweaked this libevent global shutdown code:

  - rename the function to emphasize that it's for global resources
  - write more in the doxygen
  - make function brace style consistent
  - add a missing void in a function definition.
2012-03-22 11:57:04 -04:00
Nick Mathewson
24dab0b359 event-read-fifo: Use EV_PERSIST appropriately 2012-03-19 14:39:06 -04:00
Ross Lagerwall
a5b370a220 Rename event-test.c to event-read-fifo.c.
Treat it as an example of reading from a named pipe, not an initial
teaching tool.
2012-03-19 19:18:46 +02:00
Ross Lagerwall
c0dacd23b4 On Unix, remove event.fifo left by sample/event-test.c.
This fifo would result in grep hanging when doing a recursive grep
through the Libevent sources.

event.fifo gets removed on SIGINT or normal exit.
2012-03-18 08:19:04 +02:00
Ross Lagerwall
19bab4fbd0 Fix up sample/event-test.c to use newer interfaces and make it actually work. 2012-03-15 21:59:31 +02:00
Nick Mathewson
33e42ef3d3 Now that event_assign() special-cases event_self_cbarg(), event_new() can stop 2012-03-13 19:14:57 -04:00
Nick Mathewson
1da0e04a0a Merge remote-tracking branch 'ross/eventarg-v2' 2012-03-13 19:11:11 -04:00
Nick Mathewson
45d6213ef5 Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	configure.in
2012-03-13 15:56:35 -04:00
Nick Mathewson
c41c1a2b80 Merge remote-tracking branch 'sebastian/clang_unknown_warning_options' into patches-2.0 2012-03-13 15:49:49 -04:00
Ross Lagerwall
1338e6cd56 Add a test for using event_self_cbarg() with event_assign(). 2012-03-13 21:42:40 +02:00
Ross Lagerwall
09a1906a2c event_self_cbarg() works with event_assign() for consistency with event_new(). 2012-03-13 21:41:22 +02:00
Sebastian Hahn
c2c7b39d0d Properly zero the kevent in kq_setup_kevent()
Detected by clang
2012-03-13 08:33:06 +01:00
Sebastian Hahn
083296bc27 Don't do clang version detection when disabling some flags
When clang 2.9 was around we hoped they'd introduce support for the
normalized=id and override-init warnings by 3.0, but they haven't. We
should only add the version detection back in when clang actually
supports those warnings.
2012-03-13 06:43:02 +01:00
Ross Lagerwall
fa931bb348 Add a regression test for event_self_cbarg(). 2012-03-12 21:32:45 +02:00
Ross Lagerwall
817f374dc1 Update sample/signal-test.c to use the new event_self_cbarg(). 2012-03-12 20:54:32 +02:00
Ross Lagerwall
ed36e6abea Add event_self_cbarg() to be used in conjunction with event_new().
event_self_cbarg() returns a magic value which makes event_new()
pass the event itself as the callback argument.
2012-03-12 20:42:39 +02:00
Nick Mathewson
2d2aba18a0 Merge pull request #43 from rosslagerwall/build-output
Print status information to stdout for event_rpcgen.py
2012-03-06 06:50:57 -08:00
Ross Lagerwall
ffb0ba0712 event_rpcgen.py now prints status information to stdout and errors to stderr.
Before, running make > /dev/null would result in status information cluttering
the error log. This changes it so that event_rpcgen.py prints status
information to stdout like the rest of the build tools.
2012-03-06 06:05:04 +02:00
Nick Mathewson
133956bac3 Add netinet/in.h include to fix test-fdleak on openbsd 2012-02-29 19:36:17 -05:00
Nick Mathewson
0d1611dc3e Restore accidentally disabled nanosleep implementation of evutil_usleep. 2012-02-29 17:36:12 -05:00