Niels Provos
a0cae310d0
make it so that evbuffer_add_file where we read the complete contents of the file can fail without side effects
...
svn:r1069
2009-01-29 03:22:47 +00:00
Niels Provos
66b2a7ffb7
test evbuffer_add_reference
...
svn:r1068
2009-01-29 03:20:40 +00:00
Nick Mathewson
f13bede758
Fix an unlikely degenerate case of evutil_vsnprintf
...
svn:r1067
2009-01-28 20:31:19 +00:00
Nick Mathewson
e3e696c822
Use size_t for name length in DNS requests. Not that it matters much.
...
svn:r1066
2009-01-28 20:24:12 +00:00
Nick Mathewson
b85b710cf5
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
2009-01-27 22:34:36 +00:00
Nick Mathewson
8889a77039
Replace all use of config.h with event-config.h.
...
svn:r1064
2009-01-27 22:30:46 +00:00
Nick Mathewson
9993137cbb
Remove all trailing whitespace in all the source files.
...
svn:r1063
2009-01-27 21:10:31 +00:00
Niels Provos
3065389973
make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov
...
svn:r1062
2009-01-27 16:35:28 +00:00
Niels Provos
1c927b7d2f
fix memory leak whens etting up priorities; reported by Alexander Drozdov
...
svn:r1061
2009-01-27 16:29:48 +00:00
Nick Mathewson
88f2b7a00f
Fix some warnings on linux gcc with --enable-gcc-warnings
...
svn:r1060
2009-01-27 13:37:09 +00:00
Niels Provos
1757cf717f
use %zu for off_t
...
svn:r1059
2009-01-27 06:21:12 +00:00
Niels Provos
8b5bd77415
make it compile on linux
...
svn:r1058
2009-01-27 06:18:45 +00:00
Niels Provos
fdf694933c
sendfile/mmap and memory reference implementation for evbuffers
...
svn:r1057
2009-01-27 06:05:38 +00:00
Niels Provos
b93e505452
second argument to evbuffer_pullup should be ssize_t
...
svn:r1056
2009-01-27 05:33:39 +00:00
Nick Mathewson
4f02a9630d
More docs and example code in whatsnew
...
svn:r1055
2009-01-26 18:04:18 +00:00
Nick Mathewson
c0712b1608
Initial documentation for evdns server functions. Also deprecate the one that didn't take an event_base.
...
svn:r1054
2009-01-26 17:29:45 +00:00
Nick Mathewson
2b1d535e0d
Accept evutil_socket_t for evdns_server_ports.
...
svn:r1053
2009-01-26 17:29:27 +00:00
Nick Mathewson
bdbd5e0e2f
For every deprecated function, explain why it is deprecated and what you should call instead.
...
svn:r1052
2009-01-26 17:09:37 +00:00
Nick Mathewson
52a75f18e1
Documentation (or more accurate documentation) for a few more functions.
...
svn:r1051
2009-01-26 17:09:22 +00:00
Nick Mathewson
dddd58ba13
Reformat util.h slightly so that it looks ok with 8-char tabs.
...
svn:r1050
2009-01-26 17:09:09 +00:00
Niels Provos
0e779906f9
fix memleak in evmap_signal_clear; from Alexander Drozdov
...
svn:r1049
2009-01-26 06:13:24 +00:00
Niels Provos
765ff1b9de
really install the buffer_compat.h file
...
svn:r1048
2009-01-24 17:38:27 +00:00
Nick Mathewson
81dd04a726
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
2009-01-23 18:04:34 +00:00
Nick Mathewson
de7f7a84a3
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
2009-01-23 18:03:45 +00:00
Niels Provos
b1495865aa
also install the buffer_compat.h header file
...
svn:r1044
2009-01-23 02:04:41 +00:00
Nick Mathewson
ec2f4cbc09
Move obsolete evbuffer function into include/event2/buffer_compat.h
...
svn:r1043
2009-01-23 01:35:57 +00:00
Nick Mathewson
c735f2b45a
Code to allow multiple callbacks per evbuffer.
...
svn:r1042
2009-01-23 01:11:13 +00:00
Nick Mathewson
86d526a064
Start writing more of whatsnew-xx.txt, which will become whatsnew-2.0.txt
...
svn:r1041
2009-01-23 01:04:10 +00:00
Nick Mathewson
f20902a290
Remove evperiodic_assign and its related parts: its functionality is subsumed by EV_PERSIST timeouts.
...
svn:r1040
2009-01-22 17:56:15 +00:00
Nick Mathewson
5e6f6dcd1b
Use EV_PERSIST on notify event for efficiency and simplicity.
...
svn:r1039
2009-01-22 17:48:55 +00:00
Nick Mathewson
20c20466fb
Use EV_PERSIST in bufferevents for efficiency and simplicity.
...
svn:r1038
2009-01-22 17:48:27 +00:00
Nick Mathewson
dc1526e0da
Fix warnings on compile: make static functions static.
...
svn:r1037
2009-01-22 17:48:16 +00:00
Niels Provos
fe72c885d9
fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
...
svn:r1035
2009-01-22 06:23:14 +00:00
Niels Provos
a077fb8c09
rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku
...
svn:r1033
2009-01-22 02:47:35 +00:00
Niels Provos
56ea4687a5
Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted.
...
svn:r1032
2009-01-22 02:33:38 +00:00
Nick Mathewson
309fc7c4ad
New functions to provide sane threading callbacks with pthreads and win32 threading implementations.
...
svn:r1031
2009-01-21 07:51:25 +00:00
Niels Provos
70405e3c7a
fix freebsd compile; from Alexander Drozdov
...
svn:r1030
2009-01-21 07:18:31 +00:00
Niels Provos
fa1c9a6d09
rename the backend from "event ports" to "evport" - this will allow environment based disabling to work
...
svn:r1027
2009-01-19 23:52:21 +00:00
Niels Provos
ed7e0e77ed
bug fix and potentital race condition from Alexander Drozdov
...
svn:r1025
2009-01-19 23:40:11 +00:00
Nick Mathewson
f6eb1f816c
Change evbuffer_read implementation to split data across chunks, and use readv when available. This should make us use less space.
...
svn:r1024
2009-01-19 21:53:03 +00:00
Nick Mathewson
a5901991c7
Use eventfd for main-thread notification where available (i.e., linux).
...
svn:r1023
2009-01-19 20:37:24 +00:00
Nick Mathewson
c3e9fcf672
Change the semantics of notify so we can implement it with eventfd or (given a different backend for win32) a windows Event.
...
svn:r1022
2009-01-19 20:22:47 +00:00
Nick Mathewson
34d2fd0634
Debug and enable pipe notification
...
svn:r1021
2009-01-19 19:46:03 +00:00
Niels Provos
ddf3ee976d
make event ports compile again
...
svn:r1020
2009-01-19 07:00:51 +00:00
Nick Mathewson
ec4cfa33c9
Make event_break threadsafe; make notify-thread mechanism a little more generic; let it use pipes where they work.
...
svn:r1019
2009-01-19 01:34:14 +00:00
Nick Mathewson
2b7febc80a
Fix osx compile
...
svn:r1018
2009-01-18 01:33:18 +00:00
Niels Provos
fed2fd0944
try to make devpoll work again; i dont have access to a machine
...
svn:r1017
2009-01-17 07:50:34 +00:00
Niels Provos
5e796901c1
clean up buffered data on reset; reported by Brian O'Kelley
...
svn:r1015
2009-01-16 00:25:54 +00:00
Niels Provos
83d2a34c99
rename time-test in comment to signal-test
...
svn:r1013
2009-01-15 06:15:24 +00:00
Nick Mathewson
8278c9be54
Note the one restriction on what you can do with the evbuffers of a bufferevent.
...
svn:r1011
2009-01-14 22:17:46 +00:00