2764 Commits

Author SHA1 Message Date
Nick Mathewson
55e8dc1ba2 Make check-dumpevents work with out-of-tree builds 2012-04-03 14:51:51 -04:00
Nick Mathewson
f7b8200ca7 Make check-dumpevents.py actually get included in the tarballs 2012-04-03 12:36:51 -04:00
Nick Mathewson
93defa2ffc Merge remote-tracking branch 'origin/patches-2.0' 2012-04-03 09:52:40 -04:00
Sebastian Hahn
4a6fd43313 Configure with gcc older than 2.95
I don't know why people use such ancient gcc versions, but the fix seems
straightforward enough to maybe just do it.
2012-04-03 05:37:31 +02:00
Nick Mathewson
e780d4e16c Merge remote-tracking branch 'origin/patches-2.0' 2012-04-02 18:14:26 -04:00
Nick Mathewson
78d67b2973 Missing ) in bufferevent_ratelim.c comment. Found by rransom 2012-04-02 18:13:53 -04:00
Nick Mathewson
4c7ee6b0c9 Add missing ) to changelog; spotted by rransom 2012-04-02 18:12:44 -04:00
Nick Mathewson
620f4a7c8f Add a missing name to the readme. 2012-04-02 17:31:31 -04:00
Nick Mathewson
e08a88d702 Merge branch '21_http_test_timing' 2012-04-01 01:01:50 -04:00
Nick Mathewson
fc23af45d1 Increase duration and tolerance on http/connection_retry test
This takes its runtime back up a little again, but not so high as it
was before.  It appears to address the heisenbug issues of github
nmathewson/libevent issue #49.  So far.
2012-04-01 00:21:55 -04:00
Nick Mathewson
dcab134708 Merge remote-tracking branch 'origin/patches-2.0' 2012-03-30 10:29:08 -04:00
Nick Mathewson
336dcaeaef Fix a compilation error with MSVC 2005 due to use of mode_t
MSVC apparently doesn't have a mode_t defined, though mingw does.

Found by Savg He.
2012-03-30 10:26:50 -04:00
Nick Mathewson
09cbc3dcfb Temporarily disable event_queue_reinsert_timeout
Apparently, now that we have tests for it in main/common_timeout, we
can now see that it sometimes breaks referential integrity somehow.
Since I'd like to get 2.1.1-alpha out the door soon, I'm turning it
off for now.
2012-03-26 23:28:21 -04:00
Nick Mathewson
55e991b27c Make libevent_global_shutdown() idempotent
Two calls to libevent_global_shutdown on your exit path shouldn't
result in a crash.
2012-03-26 17:35:21 -04:00
Nick Mathewson
43d5389c80 Updates for whatsnew-2.1.txt 2012-03-26 14:23:01 -04:00
Nick Mathewson
7f62f4ab2e Merge pull request #48 from rosslagerwall/py-version
Require python version
2012-03-26 11:21:51 -07:00
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