Nick Mathewson
df0617f289
Use signal.h, not sys/signal.h.
...
This is patch 2673214 from mmadia. It is correct, since we unconditionally
include signal.h in many other places, and only sometimes include sys/signal.h.
It is necessary to compile on Haiku, I'm told.
svn:r1228
2009-04-23 00:21:23 +00:00
Nick Mathewson
8b7a3b3676
Fix min_heap_erase when we remove an element from the middle of the heap.
...
Previously, we could lose the heap property when we removed an item
whose parent was greater than the last element in the heap. We would
replace the removed item with the last element, and consider shifting
it down, but we wouldn't consider shifting it up.
Patch from Marko Kreen.
svn:r1226
2009-04-23 00:01:24 +00:00
Nick Mathewson
0068c98ad2
Make version test ignore the bottom byte of the version number.
...
svn:r1225
2009-04-23 00:01:14 +00:00
Nick Mathewson
e2b987ede1
bump the numeric version; this is not the same as the alpha.
...
svn:r1224
2009-04-23 00:01:05 +00:00
Nick Mathewson
b21be24545
Somehow free_active_base was using the socketpair, but not saying it needed it. How did this ever work?
...
svn:r1223
2009-04-23 00:00:55 +00:00
Nick Mathewson
253151c54c
Detect and reject n_priorities less than 1.
...
svn:r1222
2009-04-22 20:28:30 +00:00
Nick Mathewson
01bda2b8fa
Add forgotten changelog.
...
svn:r1221
2009-04-22 20:27:21 +00:00
Nick Mathewson
11ff74cf64
Add a flag to disable checking the EVENT_* environment variables.
...
svn:r1220
2009-04-22 19:41:23 +00:00
Nick Mathewson
1f9c9e5137
Add a missing "static".
...
svn:r1219
2009-04-22 15:38:50 +00:00
Nick Mathewson
133a015dba
Make sure the test case for mem_functions hits strdup too.
...
svn:r1218
2009-04-21 18:48:05 +00:00
Nick Mathewson
d3fbe7fa05
Do not free the signal index unless it was at some point allocated
...
svn:r1217
2009-04-21 18:47:53 +00:00
Nick Mathewson
7f1855d064
Add a basic test for set_mem_functions
...
svn:r1216
2009-04-21 18:47:35 +00:00
Nick Mathewson
ea8cc76cf8
Fix the documentation of event_pending.
...
svn:r1215
2009-04-21 18:47:23 +00:00
Nick Mathewson
386279d051
Add a test for event_pending; especially the timeout part.
...
svn:r1214
2009-04-21 18:47:02 +00:00
Nick Mathewson
ff1f429510
Unit tests for event_base_once.
...
svn:r1213
2009-04-21 18:46:43 +00:00
Nick Mathewson
ea664bf29a
Refactor test wrappers to divide legacy items from useful stuff.
...
svn:r1212
2009-04-21 18:46:30 +00:00
Nick Mathewson
122e934e92
Add unit tests for version methods and feature-based backend selection
...
svn:r1211
2009-04-21 18:46:11 +00:00
Nick Mathewson
7cf8a7b0e0
Call the main testcases "main", not "legacy".
...
svn:r1210
2009-04-21 18:45:59 +00:00
Nick Mathewson
1bb8e010f9
Format microseconds correctly in bench_httpclient
...
svn:r1209
2009-04-21 16:17:59 +00:00
Nick Mathewson
eda27f9557
Update copyright notices, add some missing license statements
...
svn:r1208
2009-04-19 20:54:12 +00:00
Niels Provos
0c15d6ab7d
defer-internal.h was missing from dist; so our first tar ball did not even compile. ouch.
...
svn:r1207
2009-04-19 13:33:52 +00:00
Nick Mathewson
b7907a7bfb
Note dns work in changelog and whatsnew
...
svn:r1206
2009-04-19 01:59:25 +00:00
Nick Mathewson
2d9619d78f
Make dns callbacks run deferred
...
svn:r1205
2009-04-19 01:59:09 +00:00
Nick Mathewson
327165b339
Add locks to evdns.
...
svn:r1204
2009-04-19 01:58:54 +00:00
Nick Mathewson
ac3fc9913a
Use new-style headers in evdns.c
...
svn:r1203
2009-04-19 01:58:41 +00:00
Nick Mathewson
4d8919ec44
Do not try to double-free the nameserver in regression test
...
svn:r1202
2009-04-19 01:58:26 +00:00
Nick Mathewson
b182ed765e
More tweaks to http stress-tester
...
svn:r1201
2009-04-18 18:28:18 +00:00
Nick Mathewson
a835c7cf18
fix a misindent
...
svn:r1200
2009-04-18 18:27:56 +00:00
Niels Provos
f00f0c2533
make doxygen happier
...
svn:r1199
2009-04-18 04:34:45 +00:00
Nick Mathewson
e4f24219ee
Add a new bench_httpclient for a trivial codecon demo.
...
svn:r1198
2009-04-18 00:12:52 +00:00
Nick Mathewson
a98a512bc1
Add a generic way for any bufferevent to make its callback deferred
...
svn:r1197
2009-04-17 23:12:34 +00:00
Nick Mathewson
99de18670e
Bump version to 2.0.1-alpha-dev so that nobody mistakes a svn checkout for 2.0.1-alpha.
...
svn:r1196
2009-04-17 23:07:48 +00:00
Nick Mathewson
d047b323bd
Increment version to 2.0.1-alpha, and add a numeric version facility
...
svn:r1193
2009-04-17 17:22:32 +00:00
Nick Mathewson
b346038724
Even _more_ recent tinytest, designed to give better help output.
...
svn:r1192
release-2.0.1-alpha
2009-04-17 06:58:18 +00:00
Nick Mathewson
2c4c294ed8
note new unit test framework.
...
svn:r1191
2009-04-17 06:58:04 +00:00
Nick Mathewson
812800629b
Add the latest tinytest. This one supports a --terse flag and a --no-fork flag, and outputs nicer.
...
svn:r1190
2009-04-17 06:57:52 +00:00
Nick Mathewson
91039e4d48
Add reference counts to bufferevents.
...
svn:r1189
2009-04-17 06:57:38 +00:00
Nick Mathewson
1351e61cf6
Write a huge pile of whatsnew-2.0.txt
...
svn:r1188
2009-04-17 06:57:25 +00:00
Nick Mathewson
4935413842
Oh hey. There is no support for suspend/unsuspend.
...
svn:r1187
2009-04-17 06:57:13 +00:00
Nick Mathewson
7fa8451d7e
Add a configure flag to hardcode all of our mm functions.
...
svn:r1186
2009-04-17 06:56:57 +00:00
Nick Mathewson
64a37e61a1
Fix evmap indentation to be less stupid.
...
svn:r1185
2009-04-17 06:56:36 +00:00
Nick Mathewson
9097c95b6e
Rename whatsnew file to reflect actual version.
...
svn:r1184
2009-04-17 06:56:23 +00:00
Nick Mathewson
a8f6d961eb
Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h
...
svn:r1183
2009-04-17 06:56:09 +00:00
Nick Mathewson
796ba15fc6
Stop claiming that APIs we have are missing.
...
svn:r1182
2009-04-17 06:55:25 +00:00
Nick Mathewson
838d0a81c3
Document many internal functions and pieces of code.
...
svn:r1181
2009-04-17 06:55:08 +00:00
Nick Mathewson
433e2339ca
Remove long copy-and-paste section full of windows api notes.
...
svn:r1180
2009-04-17 06:54:28 +00:00
Niels Provos
30648529e8
have evhttp_set_cb return an int; -1 on failure, 0 on success; this is better than returning a pointer
...
svn:r1179
2009-04-17 01:03:07 +00:00
Niels Provos
edfc28caef
pkgconfig support from Ted Bullock
...
svn:r1177
2009-04-17 00:24:58 +00:00
Nick Mathewson
0b98781353
More hacking on event_iocp.c: make it compile, and give it more of an interface. This code is now testable.
...
svn:r1176
2009-04-16 00:32:52 +00:00
Nick Mathewson
09c23b6a56
It seems support for GetCompletionEventEx is not in my mingw. Use the simpler interface instead, for now.
...
svn:r1175
2009-04-16 00:27:32 +00:00