Nick Mathewson
a7a7a19045
r16735@catbus: nickm | 2007-11-26 14:24:58 -0500
...
Fix test for EVBUFFER_LENGTH in evhttp_make_header(). Since appending an empty buffer to another is a no-op, this is not really a bug-fix.
svn:r554
2007-11-26 19:25:09 +00:00
Nick Mathewson
ce4ee418d2
r16733@catbus: nickm | 2007-11-26 14:18:25 -0500
...
Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings.
svn:r553
2007-11-26 19:18:49 +00:00
Nick Mathewson
1120f04f3e
r16731@catbus: nickm | 2007-11-25 16:52:53 -0500
...
Replace all fds on non-unix-specific APIs with evutil_socket_t, which is int on unix and intptr_t on win32.
svn:r552
2007-11-25 21:53:06 +00:00
Nick Mathewson
cbf9cfdf45
r16729@catbus: nickm | 2007-11-25 16:34:50 -0500
...
Add missing changelog entry for last commit.
svn:r551
2007-11-25 21:35:02 +00:00
Nick Mathewson
6773a59721
r14953@tombo: nickm | 2007-11-25 15:56:40 -0500
...
Replace evbuffer_readline with a more powerful evbuffer_readln that can handle more EOL styles, and that can give useful results when there are NUL characters inside the returned values. Includes regression tests.
svn:r550
2007-11-25 21:32:26 +00:00
Nick Mathewson
ab010e161f
r14952@tombo: nickm | 2007-11-25 14:47:45 -0500
...
Fix an unused variable warning.
svn:r549
2007-11-25 21:32:15 +00:00
Nick Mathewson
d1ad9403cb
svn:r547
2007-11-25 21:28:51 +00:00
Nick Mathewson
fa95fe469a
r16704@catbus: nickm | 2007-11-19 15:58:54 -0500
...
Check return value of event_add in signal.c
svn:r546
2007-11-25 21:28:43 +00:00
Nick Mathewson
2823cb0579
r14944@tombo: nickm | 2007-11-25 12:12:28 -0500
...
Make kqueue pass more unit tests.
svn:r544
2007-11-25 17:15:28 +00:00
Nick Mathewson
566ca34022
svn:r543
2007-11-25 17:15:17 +00:00
Nick Mathewson
555e300ab2
r14940@tombo: nickm | 2007-11-25 12:01:37 -0500
...
New mm-internal.h header that includes internal memory management functions.
svn:r542
2007-11-25 17:14:24 +00:00
Nick Mathewson
7eb250e9c5
r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
...
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.
svn:r541
2007-11-25 17:14:19 +00:00
Niels Provos
98b5453ecd
forgot to dealloc previous base
...
svn:r540
2007-11-25 07:11:59 +00:00
Niels Provos
88897852fc
provide event_reinit() to reinitialized an event_base after fork - necessary for epoll/kqueue
...
svn:r539
2007-11-25 06:57:59 +00:00
Nick Mathewson
8c3396b0c6
r14935@tombo: nickm | 2007-11-22 11:36:54 -0500
...
Always set test_ok to zero after finishing a test, and before starting one. This turns up some failures we had been missing.
svn:r537
2007-11-22 16:41:29 +00:00
Nick Mathewson
1c23e21952
r14931@tombo: nickm | 2007-11-17 17:21:09 -0500
...
Patch from Scott Lamb: Implement event_{base_}loopbreak. Includes documentation and tests. From sf.net Feature Request 1826546.
svn:r535
2007-11-17 22:21:42 +00:00
Nick Mathewson
70248ca8ad
r14930@tombo: nickm | 2007-11-17 17:01:14 -0500
...
documentation fix on loopexit and elsewhere from Scott Lamb.
svn:r534
2007-11-17 22:21:33 +00:00
Niels Provos
af6f331a0b
use a const pointer for bufferevent_write
...
svn:r531
2007-11-17 01:32:30 +00:00
Niels Provos
f586f42885
provide event_base_new() as a mechanism for not setting the current_global
...
svn:r529
2007-11-14 17:52:21 +00:00
Niels Provos
56934d5d97
debug cleanups in signal.c; from Christopher Layne
...
svn:r527
2007-11-13 17:36:58 +00:00
Niels Provos
d50afbb370
free minheap; from Christopher Layne
...
svn:r525
2007-11-13 03:32:10 +00:00
Niels Provos
d1e03054a3
clean up event-config.h to fix make distcheck; from sourceforge tracker
...
svn:r521
2007-11-12 07:34:29 +00:00
Niels Provos
3742868ab5
We do not need to specially remove a timeout before calling event_del; patch from Christopher Layne.
...
svn:r519
2007-11-12 06:54:35 +00:00
Niels Provos
568095bfa1
srcdir for verify; from Christopher Layne
...
svn:r516
2007-11-12 05:34:10 +00:00
Niels Provos
7add3d3641
stick autogen.sh into EXTRA_DIST
...
svn:r515
2007-11-12 02:44:02 +00:00
Niels Provos
df667b96ea
we no longer need acconfig.h
...
svn:r510
2007-11-12 02:32:35 +00:00
Niels Provos
4a1a2e0d52
Make the logic for active events work better with internal events; patch from Christopher Layne
...
svn:r509
2007-11-12 02:31:07 +00:00
Niels Provos
bbed0954b1
revert r505; it introduced errors in epoll
...
svn:r508
2007-11-11 03:05:03 +00:00
Nick Mathewson
97917e68e7
r16588@catbus: nickm | 2007-11-10 02:47:14 -0500
...
Another include for sample. Patch from Christopher Layne.
svn:r507
2007-11-10 07:49:13 +00:00
Nick Mathewson
321dfd55d4
r16585@catbus: nickm | 2007-11-10 00:16:11 -0500
...
Patch from Christopher Layne: Make event_del() restore previous signal handlers, not the default.
svn:r506
2007-11-10 05:18:17 +00:00
Nick Mathewson
9f0f3d6da2
r16584@catbus: nickm | 2007-11-10 00:00:59 -0500
...
Patch from Christopher Lane: reduce branch count in epoll_dispatch.c and generally improve clarity.
svn:r505
2007-11-10 05:18:11 +00:00
Nick Mathewson
cabcd62f38
r16578@catbus: nickm | 2007-11-08 12:34:51 -0500
...
The == operator in shell is a bash-ism; do not use it in autogen.sh
svn:r503
2007-11-08 17:36:28 +00:00
Nick Mathewson
8fd2124ef9
r16556@catbus: nickm | 2007-11-07 17:55:39 -0500
...
MSVC6 does not seem to define a useful "what is the name of this function" macro
svn:r502
2007-11-07 22:57:08 +00:00
Nick Mathewson
74e5e8f439
r16554@catbus: nickm | 2007-11-07 17:33:49 -0500
...
Mention autogen.sh in the README, now that we are more vocally encouraging people to try svn.
svn:r501
2007-11-07 22:35:15 +00:00
Nick Mathewson
92cd548f80
r16544@catbus: nickm | 2007-11-07 16:12:37 -0500
...
Oops; forgot the log entry.
svn:r500
2007-11-07 21:14:04 +00:00
Nick Mathewson
4e1ec3e05e
Make all the C files in the libraries compile under MSVC 2005 Express. There are still a few warnings, and probably some subtle issues, but it's better than nothing.
...
svn:r499
2007-11-07 21:01:26 +00:00
Nick Mathewson
45c7ab25de
r16510@catbus: nickm | 2007-11-07 02:29:42 -0500
...
Try not to shadow local variables or function arguments.
svn:r498
2007-11-07 07:33:36 +00:00
Nick Mathewson
e72661d2ff
r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
...
Stop using C++ style comments.
svn:r497
2007-11-07 07:33:31 +00:00
Nick Mathewson
1f50f41283
r16508@catbus: nickm | 2007-11-07 02:01:03 -0500
...
Note a dubious point in http.c
svn:r496
2007-11-07 07:33:26 +00:00
Nick Mathewson
7feba57010
r16507@catbus: nickm | 2007-11-07 01:34:55 -0500
...
Never assign a string constant to a non-const char *.
svn:r495
2007-11-07 07:33:21 +00:00
Nick Mathewson
a3f122d667
r16506@catbus: nickm | 2007-11-07 01:29:59 -0500
...
Make all rpc and http functions not prototyped in evrpc.h and evhttp.h into static functions. I believe that these functions were meant to be private, yes?
svn:r494
2007-11-07 07:33:16 +00:00
Nick Mathewson
794857242f
Remove spurious #include <sys/tree.h> in win32.c.
...
svn:r493
2007-11-07 06:07:54 +00:00
Nick Mathewson
f74e7258fd
r16501@catbus: nickm | 2007-11-07 01:00:31 -0500
...
This is one of those patches which will either make matters far
simpler after the bugs shake out, or will get reverted pretty quick
once we realize that it is a stupid idea.
We now post-process the config.h file into a new event-config.h file,
whose macros are prefixed with _EVENT_ and which is thus safe for
headers to include. Using this, we can define replacement timeval
manipulation functions in evutil.h, and use them uniformly through our
code. We can also detect which headers are needful in event.h, and
include them as required.
This is also the perfect time to remove the long-deprecated acconfig.h
file, so that autoheader no longer warns.
Should resolve the following issues:
[ 1826530 ] Header files should have access to autoconf output.
[ 1826545 ] acconfig.h is deprecated.
[ 1826564 ] On some platforms, event.h can't be included alone.
svn:r492
2007-11-07 06:01:57 +00:00
Nick Mathewson
d0ce7d4ed7
r16500@catbus: nickm | 2007-11-07 00:27:44 -0500
...
Remove from the (deprecated) acconfig.h file stubs that are already generated by autoheader.
svn:r491
2007-11-07 06:01:45 +00:00
Nick Mathewson
206d433638
r16497@catbus: nickm | 2007-11-07 00:01:02 -0500
...
Resolve issue 1826588: make event_base_free() succeed even if there are pending non-INTERNAL events still in the base. This can leak memory and fds if used injudiciously, but at least it no longer crashes.
svn:r490
2007-11-07 05:02:21 +00:00
Nick Mathewson
29420339dc
r16496@catbus: nickm | 2007-11-06 23:58:52 -0500
...
Clarify some doxygen in event.h
svn:r489
2007-11-07 05:02:14 +00:00
Nick Mathewson
bab0e6d440
r16492@catbus: nickm | 2007-11-06 23:27:32 -0500
...
Fix unit tests so that an outdated nameserver means "Skip IPv6 tests", not "Abort."
svn:r487
2007-11-07 04:28:54 +00:00
Nick Mathewson
7c507668d7
r16489@catbus: nickm | 2007-11-06 22:51:05 -0500
...
Do not use "class" as identifier in evdns.h; but use a backward-compatible fix. (Should fix bug 1826515, originally reported by Roger Clark)
svn:r486
2007-11-07 03:52:20 +00:00
Nick Mathewson
e9564eceb3
r16487@catbus: nickm | 2007-11-06 22:38:44 -0500
...
Remove rtsig method, as discussed in July. It hasn't compiled for quite a while, and nobody has seemed to miss it much. Please let us know if this was a bad call. [Tracker issue 1826539].
svn:r485
2007-11-07 03:40:26 +00:00
Niels Provos
4555f75509
remove tree.h from EXTRA_DIST; from Charles Kerr
...
svn:r484
2007-11-07 03:25:03 +00:00