|
ac36f404
|
2009-02-11T05:17:27
|
|
oops; coding too quickly on nil-filter patch. Caught by niels.
svn:r1115
|
|
cd731b77
|
2009-02-10T21:40:12
|
|
Do not use ctypes functions in cases when we need the "net" locale.
This patch adds a new set of EVUTIL_IS* functions to replace use of
the ctypes is* functions in all cases where we care about characters'
interpretations in net ascii rather than in the locale. For example,
when we're working with DNS hostnames, we don't want to do the 0x20
hack on non-ascii characters, even if the host thinks they should be
isalpha.
svn:r1114
|
|
1ed27048
|
2009-02-10T21:39:56
|
|
Stop rolling our own offsetof twice.
svn:r1113
|
|
f04b90e5
|
2009-02-10T19:43:19
|
|
Make a couple of newer evdns functions more bulletproof.
svn:r1112
|
|
da49d6a3
|
2009-02-10T19:43:11
|
|
Stop using platform inet_aton/inet_addr; they can behave strangely on certain misformed addresses.
svn:r1111
|
|
01456265
|
2009-02-10T19:39:22
|
|
Explode less badly in the case where we're told to prepend/append/remove a buffer to itself. Note some API/implementation deficiencies.
svn:r1110
|
|
20f809ce
|
2009-02-10T19:39:12
|
|
Make default (nil) filter use evbuffer_remove_buffer to respect the high-water mark of the target buffer.
svn:r1109
|
|
e7fd1034
|
2009-02-10T19:39:03
|
|
Test some formerly untested prepend cases of evbuffer. Now evbuffer coverage is over 80 percent.
svn:r1108
|
|
9e3e7b36
|
2009-02-10T19:38:54
|
|
More unit tests for evbuffer_add_reference to make sure that certain interleaved data patterns work; that free invokes callback; that callbacks are not invoked too early or later; etc.
svn:r1107
|
|
98b7046b
|
2009-02-10T19:38:43
|
|
A few more comments on evbuffer-internal structures.
svn:r1106
|
|
edfdb698
|
2009-02-10T19:38:34
|
|
Add an assertion to evbuffer_chain_align so we can't reuse it in the future.
svn:r1105
|
|
71604d85
|
2009-02-10T19:38:25
|
|
Remove some needless includes
svn:r1104
|
|
deb2a121
|
2009-02-10T19:38:14
|
|
use new evutil_make_listen_socket_reuseable() in http.c
svn:r1103
|
|
c7b2f8fd
|
2009-02-10T19:38:05
|
|
New function to abstract SO_REUSEADDR.
svn:r1102
|
|
f9e4e0f9
|
2009-02-03T18:28:53
|
|
Move bufferevent tests to regress_bufferevent.c file.
svn:r1101
|
|
cc049bfc
|
2009-02-03T05:22:57
|
|
Enable (and debug) WSARecv for evbuffer iovec-like reads.
The two things we were missing: the flags parameter is not optional, and an error can actually indicate a close.
svn:r1100
|
|
ea11f819
|
2009-02-02T22:17:32
|
|
Compile http_connection_retry_test, but mark it skipped on win32.
svn:r1099
|
|
722885fb
|
2009-02-02T21:59:53
|
|
Some mingws have AF_UNIX, which may have prevented our socketpair from working at all on them. Fix that.
svn:r1098
|
|
3502a472
|
2009-02-02T21:24:04
|
|
convert new bufferevent_*.c files to event-config.h only.
svn:r1097
|
|
4d92e426
|
2009-02-02T19:22:27
|
|
forward-port: Make evdns_resolve_reverse args const.
svn:r1096
|
|
ea4b8724
|
2009-02-02T19:22:13
|
|
checkpoint work on big bufferevent refactoring
svn:r1095
|
|
e84c7656
|
2009-02-01T05:26:47
|
|
Allocate callback entries with contents 0d out.
svn:r1093
|
|
2e3f0f68
|
2009-02-01T02:20:16
|
|
Enable the edge-triggered test again
svn:r1092
|
|
8d3a10f8
|
2009-02-01T01:43:58
|
|
Support temporarily suspending an evbuffer callback. This is different from disabling the callback, since we want to process changes, but not just yet.
svn:r1091
|
|
e3e11531
|
2009-02-01T01:07:42
|
|
Unit tests for evbuffer callback manipulation
svn:r1090
|
|
2e50658d
|
2009-02-01T01:07:33
|
|
Fix a typo in buffer.h
svn:r1089
|
|
ca37fef9
|
2009-02-01T01:07:22
|
|
Change evbuffer callbacks to use tinytest natively and never assert.
svn:r1088
|
|
a30c9eb1
|
2009-02-01T01:07:12
|
|
Move evbuffer tests into their own file.
svn:r1087
|
|
ff7a5e12
|
2009-01-31T19:32:20
|
|
slightly more coverage for evutil.
svn:r1086
|
|
12e8db5b
|
2009-01-31T18:36:47
|
|
Convert evtag test.
svn:r1085
|
|
5831d11a
|
2009-01-31T18:36:37
|
|
Move rpc_test to regress_rpc.
svn:r1084
|
|
fa6ae169
|
2009-01-31T18:36:24
|
|
Convert RPC suite. There are still some places it can exit(1), but those always run forked, so no big deal.
svn:r1083
|
|
d9628ef4
|
2009-01-31T18:36:08
|
|
Add missing initializers
svn:r1082
|
|
eac75f91
|
2009-01-31T07:32:14
|
|
Port DNS tests.
svn:r1081
|
|
e6ba208b
|
2009-01-31T07:32:00
|
|
Tinytest update: mostly just to allow test skipping.
svn:r1080
|
|
52eb4951
|
2009-01-31T07:31:47
|
|
Build with the -fno-strict-aliasing flag on GCC.
You do not want to know about the 2 hours I just spent tracking down
an evdns bug that only affected me on some platforms to the way we
were using sockaddr* and sockaddr_in*. Suffice it to say that I do
not think this is the only C99-aliasing-dubiousness in our code, nor
that I am smart enough to keep my code correct with the GCC's strict
aliasing optimizations in place.
svn:r1079
|
|
2546ea66
|
2009-01-31T05:45:26
|
|
Do not attempt to pass a va_args to regular snprintf. Hilarity will ensue. Fortunately, 1.4 does not have this bug.
svn:r1078
|
|
4ec690d3
|
2009-01-31T05:45:16
|
|
Rename a couple of http tests so they all end with _test. This lets us simplify the naming.
svn:r1077
|
|
153093ec
|
2009-01-30T17:44:13
|
|
Port the HTTP unit tests. Most are still legacy (since they use test_ok so much), but at least they no longer exit(1) on failure
svn:r1076
|
|
241690b2
|
2009-01-30T17:43:59
|
|
Move util tests to regress_util.c
svn:r1075
|
|
4e9470b4
|
2009-01-30T17:43:48
|
|
Convert test_evutil_strtoll to new framework.
svn:r1074
|
|
a8203b34
|
2009-01-29T23:19:57
|
|
Refactor unit tests using my spiffy new "tinytest" framework.
The big win here is that we can get process-level isolation.
This has been tested to work okay on at least Linux and Win32. Only
the tests in regress.c have been converted wrapped in the new wrapper
functions; the others are still on the old system.
svn:r1073
|
|
39c8dbe0
|
2009-01-29T20:07:59
|
|
Make ht-internal.h get distributed.
svn:r1072
|
|
cc7a53c1
|
2009-01-29T18:15:36
|
|
fix signed/unsigned warning in unit tests. can we just use "char*" on all new APIs? this void/unsigned char*/char* business is awful.
svn:r1071
|
|
7dd362b1
|
2009-01-29T15:09:24
|
|
Have util-internal.h define socklen_t if we need it, and include it appropriately. This fixes win32 compilation.
svn:r1070
|
|
a0cae310
|
2009-01-29T03:22:47
|
|
make it so that evbuffer_add_file where we read the complete contents of the file can fail without side effects
svn:r1069
|
|
66b2a7ff
|
2009-01-29T03:20:40
|
|
test evbuffer_add_reference
svn:r1068
|
|
f13bede7
|
2009-01-28T20:31:19
|
|
Fix an unlikely degenerate case of evutil_vsnprintf
svn:r1067
|
|
e3e696c8
|
2009-01-28T20:24:12
|
|
Use size_t for name length in DNS requests. Not that it matters much.
svn:r1066
|
|
b85b710c
|
2009-01-27T22:34:36
|
|
Update copyright statements to reflect the facts that:
a) this is 2009
b) niels and nick have been comaintainers for a while
c) saying "all rights reserved" when you then go on to explicitly
disclaim some rights is sheer cargo-cultism.
svn:r1065
|
|
8889a770
|
2009-01-27T22:30:46
|
|
Replace all use of config.h with event-config.h.
svn:r1064
|
|
9993137c
|
2009-01-27T21:10:31
|
|
Remove all trailing whitespace in all the source files.
svn:r1063
|
|
30653899
|
2009-01-27T16:35:28
|
|
make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov
svn:r1062
|
|
1c927b7d
|
2009-01-27T16:29:48
|
|
fix memory leak whens etting up priorities; reported by Alexander Drozdov
svn:r1061
|
|
88f2b7a0
|
2009-01-27T13:37:09
|
|
Fix some warnings on linux gcc with --enable-gcc-warnings
svn:r1060
|
|
1757cf71
|
2009-01-27T06:21:12
|
|
use %zu for off_t
svn:r1059
|
|
8b5bd774
|
2009-01-27T06:18:45
|
|
make it compile on linux
svn:r1058
|
|
fdf69493
|
2009-01-27T06:05:38
|
|
sendfile/mmap and memory reference implementation for evbuffers
svn:r1057
|
|
b93e5054
|
2009-01-27T05:33:39
|
|
second argument to evbuffer_pullup should be ssize_t
svn:r1056
|
|
4f02a963
|
2009-01-26T18:04:18
|
|
More docs and example code in whatsnew
svn:r1055
|
|
c0712b16
|
2009-01-26T17:29:45
|
|
Initial documentation for evdns server functions. Also deprecate the one that didn't take an event_base.
svn:r1054
|
|
2b1d535e
|
2009-01-26T17:29:27
|
|
Accept evutil_socket_t for evdns_server_ports.
svn:r1053
|
|
bdbd5e0e
|
2009-01-26T17:09:37
|
|
For every deprecated function, explain why it is deprecated and what you should call instead.
svn:r1052
|
|
52a75f18
|
2009-01-26T17:09:22
|
|
Documentation (or more accurate documentation) for a few more functions.
svn:r1051
|
|
dddd58ba
|
2009-01-26T17:09:09
|
|
Reformat util.h slightly so that it looks ok with 8-char tabs.
svn:r1050
|
|
0e779906
|
2009-01-26T06:13:24
|
|
fix memleak in evmap_signal_clear; from Alexander Drozdov
svn:r1049
|
|
765ff1b9
|
2009-01-24T17:38:27
|
|
really install the buffer_compat.h file
svn:r1048
|
|
81dd04a7
|
2009-01-23T18:04:34
|
|
Add a "flags" field to evbuffer callbacks.
For now, there is just one: enabled. This lets us avoid lots of
mallocs/frees/tailq-manipulations just to turn a callback on and off.
The revised bufferevent code wants this.
svn:r1047
|
|
de7f7a84
|
2009-01-23T18:03:45
|
|
Remove in_callbacks check: allow full recursion in evbuffer callbacks. If you get yourself in an infinite loop, that's not our fault. Note this in the docs. Also reindent some docs now that my tabs match Niels's.
svn:r1046
|
|
b1495865
|
2009-01-23T02:04:41
|
|
also install the buffer_compat.h header file
svn:r1044
|
|
ec2f4cbc
|
2009-01-23T01:35:57
|
|
Move obsolete evbuffer function into include/event2/buffer_compat.h
svn:r1043
|
|
c735f2b4
|
2009-01-23T01:11:13
|
|
Code to allow multiple callbacks per evbuffer.
svn:r1042
|
|
86d526a0
|
2009-01-23T01:04:10
|
|
Start writing more of whatsnew-xx.txt, which will become whatsnew-2.0.txt
svn:r1041
|
|
f20902a2
|
2009-01-22T17:56:15
|
|
Remove evperiodic_assign and its related parts: its functionality is subsumed by EV_PERSIST timeouts.
svn:r1040
|
|
5e6f6dcd
|
2009-01-22T17:48:55
|
|
Use EV_PERSIST on notify event for efficiency and simplicity.
svn:r1039
|
|
20c20466
|
2009-01-22T17:48:27
|
|
Use EV_PERSIST in bufferevents for efficiency and simplicity.
svn:r1038
|
|
dc1526e0
|
2009-01-22T17:48:16
|
|
Fix warnings on compile: make static functions static.
svn:r1037
|
|
fe72c885
|
2009-01-22T06:23:14
|
|
fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
svn:r1035
|
|
a077fb8c
|
2009-01-22T02:47:35
|
|
rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku
svn:r1033
|
|
56ea4687
|
2009-01-22T02:33:38
|
|
Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted.
svn:r1032
|
|
309fc7c4
|
2009-01-21T07:51:25
|
|
New functions to provide sane threading callbacks with pthreads and win32 threading implementations.
svn:r1031
|
|
70405e3c
|
2009-01-21T07:18:31
|
|
fix freebsd compile; from Alexander Drozdov
svn:r1030
|
|
fa1c9a6d
|
2009-01-19T23:52:21
|
|
rename the backend from "event ports" to "evport" - this will allow environment based disabling to work
svn:r1027
|
|
ed7e0e77
|
2009-01-19T23:40:11
|
|
bug fix and potentital race condition from Alexander Drozdov
svn:r1025
|
|
f6eb1f81
|
2009-01-19T21:53:03
|
|
Change evbuffer_read implementation to split data across chunks, and use readv when available. This should make us use less space.
svn:r1024
|
|
a5901991
|
2009-01-19T20:37:24
|
|
Use eventfd for main-thread notification where available (i.e., linux).
svn:r1023
|
|
c3e9fcf6
|
2009-01-19T20:22:47
|
|
Change the semantics of notify so we can implement it with eventfd or (given a different backend for win32) a windows Event.
svn:r1022
|
|
34d2fd06
|
2009-01-19T19:46:03
|
|
Debug and enable pipe notification
svn:r1021
|
|
ddf3ee97
|
2009-01-19T07:00:51
|
|
make event ports compile again
svn:r1020
|
|
ec4cfa33
|
2009-01-19T01:34:14
|
|
Make event_break threadsafe; make notify-thread mechanism a little more generic; let it use pipes where they work.
svn:r1019
|
|
2b7febc8
|
2009-01-18T01:33:18
|
|
Fix osx compile
svn:r1018
|
|
fed2fd09
|
2009-01-17T07:50:34
|
|
try to make devpoll work again; i dont have access to a machine
svn:r1017
|
|
5e796901
|
2009-01-16T00:25:54
|
|
clean up buffered data on reset; reported by Brian O'Kelley
svn:r1015
|
|
83d2a34c
|
2009-01-15T06:15:24
|
|
rename time-test in comment to signal-test
svn:r1013
|
|
8278c9be
|
2009-01-14T22:17:46
|
|
Note the one restriction on what you can do with the evbuffers of a bufferevent.
svn:r1011
|
|
84031819
|
2009-01-14T22:17:31
|
|
Make some evbuffer functions const
svn:r1010
|
|
89fe3167
|
2009-01-14T21:13:58
|
|
Update win32 code to put indices in evmap.
svn:r1009
|
|
554e1493
|
2009-01-14T20:52:32
|
|
Move per-fd info from eventops into evmap. Not done for win32.c yet.
svn:r1008
|
|
3552ac1e
|
2009-01-14T19:39:17
|
|
Do not allow chain length to expand indefinitely.
svn:r1007
|
|
ad7f1b4a
|
2009-01-14T18:45:42
|
|
The element size for our linear evmaps is a pointer, not the whole struct.
svn:r1006
|