]> granicus.if.org Git - libevent/log
libevent
17 years agoman page fixes from todd miller
Niels Provos [Thu, 22 Mar 2007 15:09:30 +0000 (15:09 +0000)]
man page fixes from todd miller

svn:r352

17 years agomore the signal base into the event base; this removes global state and makes signals
Niels Provos [Sat, 10 Mar 2007 06:37:53 +0000 (06:37 +0000)]
more the signal base into the event base; this removes global state and makes signals
work better with threading; from Wouter Wijngaards
small fixes for kqueue and style by me

svn:r351

17 years agosplit finding of callbacks out of code
Niels Provos [Tue, 6 Mar 2007 06:26:10 +0000 (06:26 +0000)]
split finding of callbacks out of code

svn:r350

17 years agoEVRPC_MAKE_REQUEST needs the pool argument
Niels Provos [Mon, 5 Mar 2007 07:28:15 +0000 (07:28 +0000)]
EVRPC_MAKE_REQUEST needs the pool argument

svn:r349

17 years agospell Oleson correctly
Niels Provos [Mon, 5 Mar 2007 06:49:45 +0000 (06:49 +0000)]
spell Oleson correctly

svn:r348

17 years agobetter conversion; cannot use event_err here.
Niels Provos [Sat, 3 Mar 2007 08:27:52 +0000 (08:27 +0000)]
better conversion; cannot use event_err here.

svn:r344

17 years agoproper casting for conversion
Niels Provos [Sat, 3 Mar 2007 08:18:20 +0000 (08:18 +0000)]
proper casting for conversion

svn:r343

17 years agoinstall evrpc.h header
Niels Provos [Sat, 3 Mar 2007 08:16:40 +0000 (08:16 +0000)]
install evrpc.h header

svn:r342

17 years agorolling back r339: evconfig.h does not work
Niels Provos [Thu, 1 Mar 2007 06:25:18 +0000 (06:25 +0000)]
rolling back r339: evconfig.h does not work

svn:r341

17 years agosignal fixes from scott lamb
Niels Provos [Wed, 28 Feb 2007 04:29:18 +0000 (04:29 +0000)]
signal fixes from scott lamb

svn:r340

17 years agomake evconfig.h available as installed header file; not
Niels Provos [Wed, 28 Feb 2007 04:02:29 +0000 (04:02 +0000)]
make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson

svn:r339

17 years agomissing return (-1) for failures on make_socket
Niels Provos [Tue, 27 Feb 2007 08:16:50 +0000 (08:16 +0000)]
missing return (-1) for failures on make_socket

svn:r338

17 years agoremove artifical 16-bit restriction on evrpc entries
Niels Provos [Sat, 24 Feb 2007 08:33:07 +0000 (08:33 +0000)]
remove artifical 16-bit restriction on evrpc entries

svn:r337

17 years agoremove redundant \n from event_warn
Niels Provos [Tue, 20 Feb 2007 03:35:31 +0000 (03:35 +0000)]
remove redundant \n from event_warn

svn:r336

17 years ago1.3a on trunk?
Niels Provos [Sun, 18 Feb 2007 19:33:19 +0000 (19:33 +0000)]
1.3a on trunk?

svn:r333

17 years agoO(n^2) is bad
Niels Provos [Fri, 16 Feb 2007 08:48:55 +0000 (08:48 +0000)]
O(n^2) is bad

svn:r332

17 years agomissing reference to strlcpy-internal
Niels Provos [Thu, 15 Feb 2007 22:46:04 +0000 (22:46 +0000)]
missing reference to strlcpy-internal

svn:r330

17 years agotry to make it work with proxy-connections
Niels Provos [Thu, 15 Feb 2007 02:16:07 +0000 (02:16 +0000)]
try to make it work with proxy-connections

svn:r329

17 years agofix handling of chunked requests
Niels Provos [Wed, 14 Feb 2007 16:59:47 +0000 (16:59 +0000)]
fix handling of chunked requests

svn:r328

17 years agomake chunked requests work correctly; this is done by providing
Niels Provos [Wed, 14 Feb 2007 06:10:32 +0000 (06:10 +0000)]
make chunked requests work correctly; this is done by providing
a separate callback for invidiual chunks.  if this callback is
not set, all the data is going to be delivered at the end.

svn:r327

17 years agoclose connections for http/1.0 unless there is keep-alive
Niels Provos [Tue, 13 Feb 2007 06:25:16 +0000 (06:25 +0000)]
close connections for http/1.0 unless there is keep-alive

svn:r326

17 years agowhen parsing query parameters, we automatically unquote them
Niels Provos [Tue, 13 Feb 2007 06:14:42 +0000 (06:14 +0000)]
when parsing query parameters, we automatically unquote them

svn:r325

17 years agoset content length even if content-type is specified
Niels Provos [Sun, 11 Feb 2007 07:58:39 +0000 (07:58 +0000)]
set content length even if content-type is specified

svn:r324

17 years agoadd prototype for bufferevent_base_set; from thorsten glaser
Niels Provos [Fri, 9 Feb 2007 07:52:04 +0000 (07:52 +0000)]
add prototype for bufferevent_base_set; from thorsten glaser

svn:r323

17 years agomake mingw happy; from Nick Mathewson
Niels Provos [Fri, 9 Feb 2007 07:49:55 +0000 (07:49 +0000)]
make mingw happy; from Nick Mathewson

svn:r322

17 years agodns server support from Nick Mathewson; tiny tweaks
Niels Provos [Thu, 8 Feb 2007 16:39:15 +0000 (16:39 +0000)]
dns server support from Nick Mathewson; tiny tweaks
to the regression test from me to make it run on
systems where stack variables get initialized with
trash.

svn:r321

17 years agoadd people I forgot to give credit to; but in alphabetical order;
Niels Provos [Thu, 8 Feb 2007 16:27:26 +0000 (16:27 +0000)]
add people I forgot to give credit to;  but in alphabetical order;
from dug song (he had to remind me of this; how embarassing)

svn:r320

17 years agosmall bug fixes to AAAA resolution and regression test; from Nick Mathewson!
Niels Provos [Sat, 27 Jan 2007 08:38:51 +0000 (08:38 +0000)]
small bug fixes to AAAA resolution and regression test; from Nick Mathewson!

we love regresson tests.

svn:r319

17 years agoAllow setting of more DNS options via API; from Nick Mathewson!!!
Niels Provos [Sat, 27 Jan 2007 04:27:59 +0000 (04:27 +0000)]
Allow setting of more DNS options via API; from Nick Mathewson!!!

svn:r318

17 years agodns name compression; from Nick Mathewson!!
Niels Provos [Sat, 27 Jan 2007 04:25:46 +0000 (04:25 +0000)]
dns name compression; from Nick Mathewson!!

svn:r317

17 years agominor fixes; spelling corrections; compatibility from Nick Mathewson!
Niels Provos [Sat, 27 Jan 2007 04:23:33 +0000 (04:23 +0000)]
minor fixes; spelling corrections; compatibility from Nick Mathewson!

svn:r316

17 years agoAAAA support for DNS; from Nick Mathewson.
Niels Provos [Sat, 27 Jan 2007 04:22:36 +0000 (04:22 +0000)]
AAAA support for DNS; from Nick Mathewson.

unfortunately, no regression test

svn:r315

17 years agomake it work on freebsd; from phil oleson
Niels Provos [Sat, 27 Jan 2007 04:10:08 +0000 (04:10 +0000)]
make it work on freebsd; from phil oleson

svn:r314

17 years agoextern "C" guard for header file.
Niels Provos [Sat, 27 Jan 2007 04:06:52 +0000 (04:06 +0000)]
extern "C" guard for header file.

assert activeq in event.c;

from Phil Oelson.

svn:r313

17 years agofix ddos in dns parsing due to infinite loop;
Niels Provos [Sun, 21 Jan 2007 17:28:55 +0000 (17:28 +0000)]
fix ddos in dns parsing due to infinite loop;
patch from Nick Mathewson; also received
notification from Jon Oberheide.

svn:r311

17 years agofix http server so it can accept on high ports;
Niels Provos [Thu, 18 Jan 2007 06:28:42 +0000 (06:28 +0000)]
fix http server so it can accept on high ports;
better warning messages for getnameinfo;
from Philip Lewis

svn:r310

17 years agomake accept socket non-blocking; from dug song
Niels Provos [Wed, 10 Jan 2007 02:42:29 +0000 (02:42 +0000)]
make accept socket non-blocking; from dug song

svn:r309

17 years agoevbuffer_find fix from Dug Song
Niels Provos [Sat, 6 Jan 2007 02:25:50 +0000 (02:25 +0000)]
evbuffer_find fix from Dug Song

svn:r308

17 years agofrom dug song:
Niels Provos [Thu, 4 Jan 2007 18:05:17 +0000 (18:05 +0000)]
from dug song:
the original code failed in the case of a large single client
request+body write - for instance, over loopback (with a larger MTU
exceeding EVBUFFER_MAX_READ).

svn:r307

17 years agorename strlcpy so that it does not conflict with other tests; from
Niels Provos [Wed, 3 Jan 2007 07:11:17 +0000 (07:11 +0000)]
rename strlcpy so that it does not conflict with other tests; from
Nick Mathewson.

svn:r306

18 years agofix a bug in an assert; from Weston Andros Adamson
Niels Provos [Sat, 23 Dec 2006 07:30:10 +0000 (07:30 +0000)]
fix a bug in an assert; from Weston Andros Adamson

svn:r305

18 years agohttp chunking support from dug song;
Niels Provos [Mon, 18 Dec 2006 15:26:19 +0000 (15:26 +0000)]
http chunking support from dug song;
some refactoring and extra error checking by me

svn:r304

18 years agoFrom Nick Mathewson:
Niels Provos [Tue, 12 Dec 2006 04:02:07 +0000 (04:02 +0000)]
From Nick Mathewson:
This patch resets the successive timeout count to zero when:
  - A nameserver comes up
  - We receive a reply from a nameserver
  - We decide to not use the nameserver for a while because of its
    timeout count.

This patch also changes the timeout threshold from 3 to 5 seconds.

svn:r303

18 years agodo close-detection via a separate event
Niels Provos [Tue, 12 Dec 2006 03:51:30 +0000 (03:51 +0000)]
do close-detection via a separate event

svn:r301

18 years agodetect if a client to a streaming reply hangs up; from dug song
Niels Provos [Sat, 9 Dec 2006 05:14:37 +0000 (05:14 +0000)]
detect if a client to a streaming reply hangs up; from dug song
comments from me :-)

svn:r300

18 years agolow-level interfaces for streaming; from dug song
Niels Provos [Sat, 9 Dec 2006 02:58:12 +0000 (02:58 +0000)]
low-level interfaces for streaming; from dug song
i applied some bug fixes and slight re-arranged the logic
on when to call the close notification callback;
i also don't like the streaming interface; i'd rather
see it do the chunked response formatting explicitly.

svn:r298

18 years agosupport retrying for connections; from dug song
Niels Provos [Sat, 9 Dec 2006 01:41:57 +0000 (01:41 +0000)]
support retrying for connections; from dug song
small tweaks from me.

svn:r297

18 years agodecode uri when sending a request; from dug song
Niels Provos [Sat, 9 Dec 2006 01:33:03 +0000 (01:33 +0000)]
decode uri when sending a request; from dug song

svn:r296

18 years agofix a bug where event_set was called on a pending event;
Niels Provos [Wed, 6 Dec 2006 04:12:11 +0000 (04:12 +0000)]
fix a bug where event_set was called on a pending event;
don't read body for return codes that do not require a body;
from dug song.

svn:r294

18 years agoallow gotsig to terminate active event loop;
Niels Provos [Wed, 6 Dec 2006 03:38:41 +0000 (03:38 +0000)]
allow gotsig to terminate active event loop;
free http connection on failed incoming connections;
bugs pointed out by Dug Song.

svn:r293

18 years agofix cases where there is no content or transfer encoding was specified
Niels Provos [Sat, 2 Dec 2006 21:28:39 +0000 (21:28 +0000)]
fix cases where there is no content or transfer encoding was specified
from Dug Song

svn:r291

18 years agouse CLOCK_REALTIME when CLOCK_MONOTONIC is not available; from Phil Oleson
Niels Provos [Sat, 2 Dec 2006 21:25:21 +0000 (21:25 +0000)]
use CLOCK_REALTIME when CLOCK_MONOTONIC is not available; from Phil Oleson

svn:r290

18 years agosupport #define in .rpc descriptions
Niels Provos [Sun, 26 Nov 2006 16:13:17 +0000 (16:13 +0000)]
support #define in .rpc descriptions

svn:r278

18 years agopersistent connections are somewhat complicated; detect on the client side if the
Niels Provos [Thu, 23 Nov 2006 06:32:20 +0000 (06:32 +0000)]
persistent connections are somewhat complicated; detect on the client side if the
server closes a persistent connection.  previously, we would have failed the next
request on that connection.  provide test case.

svn:r277

18 years agotransaction id fixes from richard nyberg; return correct
Niels Provos [Thu, 23 Nov 2006 05:27:15 +0000 (05:27 +0000)]
transaction id fixes from richard nyberg; return correct
error code when file for resolv.conf cannot be found.

svn:r276

18 years agotest that rpc timeouts work correctly
Niels Provos [Wed, 22 Nov 2006 07:30:34 +0000 (07:30 +0000)]
test that rpc timeouts work correctly

svn:r275

18 years agofix a bug where rpc would not be scheduled when they were queued; test for it.
Niels Provos [Wed, 22 Nov 2006 06:54:28 +0000 (06:54 +0000)]
fix a bug where rpc would not be scheduled when they were queued; test for it.
allow a configurable timeout for connections and RPCs.

svn:r274

18 years agoan attempt at differentiated error handling for timeouts and eof.
Niels Provos [Wed, 22 Nov 2006 05:03:02 +0000 (05:03 +0000)]
an attempt at differentiated error handling for timeouts and eof.
really this needs to be propagated all the way to the callback.

svn:r273

18 years agoforgot to add this
Niels Provos [Wed, 22 Nov 2006 04:35:56 +0000 (04:35 +0000)]
forgot to add this

svn:r272

18 years agomingw fixes from Nick
Niels Provos [Wed, 22 Nov 2006 01:21:10 +0000 (01:21 +0000)]
mingw fixes from Nick

svn:r271

18 years agodon't require string literal for message name
Niels Provos [Mon, 20 Nov 2006 07:57:36 +0000 (07:57 +0000)]
don't require string literal for message name

svn:r270

18 years agofinish RPC client support
Niels Provos [Mon, 20 Nov 2006 07:44:37 +0000 (07:44 +0000)]
finish RPC client support

svn:r269

18 years agogenerate client request code via macro; flesh out the pools a little bit.
Niels Provos [Mon, 20 Nov 2006 03:32:53 +0000 (03:32 +0000)]
generate client request code via macro; flesh out the pools a little bit.

svn:r268

18 years agomake it work with python2.2
Niels Provos [Sun, 19 Nov 2006 02:03:43 +0000 (02:03 +0000)]
make it work with python2.2

svn:r267

18 years agouse more python builtins; dont use reserved keywords
Niels Provos [Sat, 18 Nov 2006 21:27:42 +0000 (21:27 +0000)]
use more python builtins; dont use reserved keywords

svn:r266

18 years agomake regression test work for poll and select
Niels Provos [Sat, 18 Nov 2006 08:51:12 +0000 (08:51 +0000)]
make regression test work for poll and select

svn:r265

18 years agosome compilers don't like C99 inline variable declaration
Niels Provos [Sat, 18 Nov 2006 07:30:21 +0000 (07:30 +0000)]
some compilers don't like C99 inline variable declaration

svn:r264

18 years agoforgot ifdef guard around stdint.h
Niels Provos [Sat, 18 Nov 2006 03:52:27 +0000 (03:52 +0000)]
forgot ifdef guard around stdint.h

svn:r263

18 years agotest both piplining on persistent and non-persistent connections
Niels Provos [Sat, 18 Nov 2006 03:43:26 +0000 (03:43 +0000)]
test both piplining on persistent and non-persistent connections

svn:r262

18 years agomake persistent connections work; needs more testing
Niels Provos [Sat, 18 Nov 2006 03:05:26 +0000 (03:05 +0000)]
make persistent connections work; needs more testing

svn:r261

18 years agointroduce is connection close
Niels Provos [Sat, 18 Nov 2006 02:10:25 +0000 (02:10 +0000)]
introduce is connection close

svn:r260

18 years agoadd "Connection: close" to the output headers of the HTTP server reply;
Niels Provos [Fri, 17 Nov 2006 07:45:42 +0000 (07:45 +0000)]
add "Connection: close" to the output headers of the HTTP server reply;
we don't currently support persistent connections; although that's going
to be easy to add.

svn:r259

18 years agomake sure that the rpc callback receives an unmarshaled payload;
Niels Provos [Fri, 17 Nov 2006 06:06:17 +0000 (06:06 +0000)]
make sure that the rpc callback receives an unmarshaled payload;
make sure that the rpc reply contains a good rpc structure, too.

svn:r258

18 years agowe indicate a failed request by removing the uri from the request object
Niels Provos [Thu, 16 Nov 2006 15:59:42 +0000 (15:59 +0000)]
we indicate a failed request by removing the uri from the request object

svn:r257

18 years agoprefix was missing /; malformed request caused server to crash
Niels Provos [Thu, 16 Nov 2006 08:49:26 +0000 (08:49 +0000)]
prefix was missing /; malformed request caused server to crash

svn:r256

18 years agoforgot to add file
Niels Provos [Thu, 16 Nov 2006 08:21:27 +0000 (08:21 +0000)]
forgot to add file

svn:r255

18 years agofirst stab at an rpc layer; this breaks the regression test.
Niels Provos [Thu, 16 Nov 2006 07:36:20 +0000 (07:36 +0000)]
first stab at an rpc layer;  this breaks the regression test.

svn:r254

18 years agodon't need to include getopt here
Niels Provos [Sun, 12 Nov 2006 00:59:56 +0000 (00:59 +0000)]
don't need to include getopt here

svn:r253

18 years agofix a potential problem in multiple handling of va_list; use va_copy instead;
Niels Provos [Fri, 10 Nov 2006 02:16:16 +0000 (02:16 +0000)]
fix a potential problem in multiple handling of va_list; use va_copy instead;
from Alejo.

svn:r251

18 years agofail without leaking memory when poll set extension fails
Niels Provos [Sun, 5 Nov 2006 17:24:24 +0000 (17:24 +0000)]
fail without leaking memory when poll set extension fails

svn:r249

18 years agofix a potential memory leak in event_once from Scott Lamb
Niels Provos [Sat, 28 Oct 2006 03:20:22 +0000 (03:20 +0000)]
fix a potential memory leak in event_once from Scott Lamb

svn:r244

18 years agomake it 1.2; fix some size issues for printf in regression code
Niels Provos [Sun, 15 Oct 2006 21:55:13 +0000 (21:55 +0000)]
make it 1.2; fix some size issues for printf in regression code

svn:r242

18 years agoimproved nroff mdoc for the man page
Niels Provos [Sun, 15 Oct 2006 21:41:56 +0000 (21:41 +0000)]
improved nroff mdoc for the man page

svn:r241

18 years agoinstall evdns.3 man page
Niels Provos [Mon, 9 Oct 2006 01:55:23 +0000 (01:55 +0000)]
install evdns.3 man page

svn:r240

18 years agoput the evdns documentation into the header file. pathetic start of evdns manpage...
Niels Provos [Mon, 9 Oct 2006 00:48:42 +0000 (00:48 +0000)]
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

18 years agosync evdns changes with tor - from Nick Mathewson
Niels Provos [Thu, 5 Oct 2006 22:59:44 +0000 (22:59 +0000)]
sync evdns changes with tor - from Nick Mathewson

svn:r238

18 years agoProtect EVENT_* macros - () were missing
Niels Provos [Wed, 4 Oct 2006 03:45:10 +0000 (03:45 +0000)]
Protect EVENT_* macros - () were missing

svn:r237

18 years agomake it compile with mingw; from Nick
Niels Provos [Wed, 27 Sep 2006 03:07:38 +0000 (03:07 +0000)]
make it compile with mingw; from Nick

svn:r235

18 years agotypo in kqueue delete; from Bert JW Regeer
Niels Provos [Sun, 3 Sep 2006 21:12:59 +0000 (21:12 +0000)]
typo in kqueue delete; from Bert JW Regeer

svn:r232

18 years agointroduce evdns_init() which works on windows and unix.
Niels Provos [Mon, 28 Aug 2006 00:57:49 +0000 (00:57 +0000)]
introduce evdns_init() which works on windows and unix.

svn:r231

18 years agoadd a simple regression test for the DNS resolver; requires internet access.
Niels Provos [Sun, 27 Aug 2006 20:04:20 +0000 (20:04 +0000)]
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

18 years agoinclude evdns.h header - fix windows distribution files
Niels Provos [Sun, 27 Aug 2006 19:43:00 +0000 (19:43 +0000)]
include evdns.h header - fix windows distribution files

svn:r229

18 years agodocument that read and write callbacks may be NULL.
Niels Provos [Sat, 26 Aug 2006 04:34:43 +0000 (04:34 +0000)]
document that read and write callbacks may be NULL.

svn:r228

18 years agoallow both read and write callbacks for bufferevents to be NULL
Niels Provos [Sat, 26 Aug 2006 04:32:31 +0000 (04:32 +0000)]
allow both read and write callbacks for bufferevents to be NULL

svn:r227

18 years agorename eventdns to evdns to match libevent naming scheme
Niels Provos [Thu, 24 Aug 2006 06:10:50 +0000 (06:10 +0000)]
rename eventdns to evdns to match libevent naming scheme

svn:r226

18 years agoconfigure evdns and make it compile
Niels Provos [Sun, 13 Aug 2006 06:59:37 +0000 (06:59 +0000)]
configure evdns and make it compile

svn:r225

18 years agounmodified eventdns from Adam Langley via tor repository
Niels Provos [Sun, 13 Aug 2006 06:33:45 +0000 (06:33 +0000)]
unmodified eventdns from Adam Langley via tor repository

svn:r224

18 years agofix regression test
Niels Provos [Sun, 13 Aug 2006 00:03:35 +0000 (00:03 +0000)]
fix regression test

svn:r223

18 years agowindows makefile fixes from branch
Niels Provos [Fri, 11 Aug 2006 15:20:10 +0000 (15:20 +0000)]
windows makefile fixes from branch

svn:r222

18 years agoadd back the original sun copyright block
Niels Provos [Wed, 9 Aug 2006 01:04:12 +0000 (01:04 +0000)]
add back the original sun copyright block

svn:r219