233 Commits

Author SHA1 Message Date
Niels Provos
d698965928 fix a potential memory leak in event_once from Scott Lamb
svn:r244
2006-10-28 03:20:22 +00:00
Niels Provos
3eec7f7c64 make it 1.2; fix some size issues for printf in regression code
svn:r242
2006-10-15 21:55:13 +00:00
Niels Provos
ea52d9fd8d improved nroff mdoc for the man page
svn:r241
2006-10-15 21:41:56 +00:00
Niels Provos
152f570047 install evdns.3 man page
svn:r240
2006-10-09 01:55:23 +00:00
Niels Provos
cf47f86b74 put the evdns documentation into the header file. pathetic start of evdns manpage. a little bit
more testing and debug output for the DNS regression test.   add a BSD copyright to evdns.h with
appropriate explanations.


svn:r239
2006-10-09 00:48:42 +00:00
Niels Provos
fe1dfe0f40 sync evdns changes with tor - from Nick Mathewson
svn:r238
2006-10-05 22:59:44 +00:00
Niels Provos
b6b933af5c Protect EVENT_* macros - () were missing
svn:r237
2006-10-04 03:45:10 +00:00
Niels Provos
9f7d28bb81 make it compile with mingw; from Nick
svn:r235
2006-09-27 03:07:38 +00:00
Niels Provos
64c76fbea4 typo in kqueue delete; from Bert JW Regeer
svn:r232
2006-09-03 21:12:59 +00:00
Niels Provos
e9c1e3f7f0 introduce evdns_init() which works on windows and unix.
svn:r231
2006-08-28 00:57:49 +00:00
Niels Provos
07c3fb5067 add a simple regression test for the DNS resolver; requires internet access.
do some KNF on evdns.c; add checks to prevent potential buffer overflows.
fix one memory leak.


svn:r230
2006-08-27 20:04:20 +00:00
Niels Provos
e80e52ceb7 include evdns.h header - fix windows distribution files
svn:r229
2006-08-27 19:43:00 +00:00
Niels Provos
b0b5e2c2ac document that read and write callbacks may be NULL.
svn:r228
2006-08-26 04:34:43 +00:00
Niels Provos
c1eec7aae5 allow both read and write callbacks for bufferevents to be NULL
svn:r227
2006-08-26 04:32:31 +00:00
Niels Provos
52bfcab894 rename eventdns to evdns to match libevent naming scheme
svn:r226
2006-08-24 06:10:50 +00:00
Niels Provos
d0d8f9b468 configure evdns and make it compile
svn:r225
2006-08-13 06:59:37 +00:00
Niels Provos
cca7249ed6 unmodified eventdns from Adam Langley via tor repository
svn:r224
2006-08-13 06:33:45 +00:00
Niels Provos
296739e022 fix regression test
svn:r223
2006-08-13 00:03:35 +00:00
Niels Provos
4596f82e17 windows makefile fixes from branch
svn:r222
2006-08-11 15:20:10 +00:00
Niels Provos
49ef242f6e add back the original sun copyright block
svn:r219
2006-08-09 01:04:12 +00:00
Niels Provos
94af961f36 get rid of err.h
svn:r218
2006-07-18 06:35:48 +00:00
Niels Provos
ba7262ebdf reorganization of the http functionality; we separate http handling into a
connection object and a request object; also make it clear which buffers are
used for input and output; unittests not complete yet.


svn:r217
2006-07-17 00:33:57 +00:00
Niels Provos
00bc7e37fd 1.2-rc1; Solaris' event port support from Dave Pacheco
svn:r216
2006-07-15 02:55:57 +00:00
Niels Provos
f0ecf50727 need to report one less file descriptor to solaris then the limit; reported
by Dave Pacheco


svn:r215
2006-07-15 02:39:31 +00:00
Niels Provos
6813af3f11 move http related prototypes to evhttp.h
svn:r214
2006-06-10 22:37:21 +00:00
Niels Provos
147b71e33c rename http.h to http-internal.h - i wish there were decent refactoring tools
for open source programmers.


svn:r213
2006-06-10 22:28:21 +00:00
Niels Provos
ebf5333f97 oops. the enums were actually creating symbols
svn:r212
2006-05-17 13:13:31 +00:00
Niels Provos
71108cd98b uhm - i obliterated a gettimeofday that was required for remapping the
timeouts to "real" time.  thanks to claudio for pointing that out.


svn:r211
2006-03-28 16:57:19 +00:00
Niels Provos
2e8051f593 introduce a way to free the base from Nick Mathewson <nickm@freehaven.net>
svn:r210
2006-03-28 04:40:54 +00:00
Niels Provos
571ac95430 use clock_gettime if available from Claudio Jeker <claudio@openbsd.org>
svn:r209
2006-03-28 04:33:41 +00:00
Niels Provos
a32839c8ec some nit-picking from poul-henning kamp
svn:r208
2006-03-28 04:17:51 +00:00
Niels Provos
7517ef2a81 some fixes from openbsd via brad
svn:r207
2006-03-28 04:16:14 +00:00
Niels Provos
682d598ada add log.c to build file; remove err.c; reported by Sreekant Sreedharan
svn:r206
2006-02-27 02:33:02 +00:00
Niels Provos
38b33048eb make a simple test for HTTP POST requests
svn:r205
2006-02-27 02:27:37 +00:00
Niels Provos
60192b4625 improved/well-completely rewritten rtsig support by Mathew Mills; fix some
cases where regress would not pass on Linux


svn:r204
2006-02-26 20:18:35 +00:00
Niels Provos
f6550f407c provide strlcpy for the unenlightened libcs
svn:r203
2006-02-26 20:13:04 +00:00
Niels Provos
88bd79439d make it compile on mac os x
svn:r202
2006-02-13 04:53:58 +00:00
Niels Provos
896bf3a260 many changes for fixing a small bug: post requests would not send the post
data.  I took the opportunity to reorganize a bit.


svn:r201
2006-02-13 02:22:48 +00:00
Niels Provos
7b78c82823 limit the amount of data bufferevents are going to consume to something
reasonable; in some circumstances it could happen that libevent happily
allocated 100MB in read buffers without telling the user; found by
christopher maxwell - parts of these changes are from his patch.


svn:r200
2006-02-13 01:51:58 +00:00
Niels Provos
f296e6336a allow setting an event base for bufferevents; from phil oleson
svn:r199
2006-02-03 19:26:06 +00:00
Niels Provos
6717cf313a fix a compile problem when USE_DEBUG is enabled
svn:r198
2006-02-03 19:24:28 +00:00
Niels Provos
c398d78811 disable bufferevent after we have received the data that we care for.
svn:r197
2006-02-02 22:36:37 +00:00
Niels Provos
a3bb4a035f I often need some very simple HTTP functionality, so this is a first stab
at integrating something really simple with HTTP.  The interface is still
evolving as I start messing with it.  Not all the interfaces are properly
exported yet.

I am also trying to figure out how to intelligently hide the details about
the different structures from users, so that that things can be changed
around later.


svn:r196
2006-01-22 05:08:50 +00:00
Niels Provos
8af2db10d9 version 1.2
svn:r195
2006-01-22 05:06:29 +00:00
Niels Provos
36bedaef19 another fix from art
svn:r194
2006-01-22 05:06:14 +00:00
Niels Provos
3c74f06f42 improved manpage from Phil Oleson
svn:r193
2006-01-21 03:04:31 +00:00
Niels Provos
1d308e8813 mostly whitespace fixes from OpenBSD via Brad
svn:r192
2005-12-17 20:25:22 +00:00
Niels Provos
686dede71b do not undefine USE_DEBUG in header file; allow CFLAGS specification; from
Stas Bekman


svn:r191
2005-12-17 20:18:10 +00:00
Niels Provos
139e862e32 do not remove kq inkernel flag before event_del gets to it; bug reported by
Tassilo von Parseval; also add a test for this behavior.


svn:r190
2005-12-17 20:15:25 +00:00
Niels Provos
0c48c70680 windows memory corruption bug fix from I-M Weasel via Nick Mathewson.
svn:r189
2005-12-08 23:05:42 +00:00