]> granicus.if.org Git - libevent/log
libevent
14 years agoMerge remote branch 'origin/patches-2.0'
Nick Mathewson [Mon, 31 Jan 2011 21:45:23 +0000 (16:45 -0500)]
Merge remote branch 'origin/patches-2.0'

14 years agoAdd compile-time check for AF_UNSPEC==PF_UNSPEC
Nick Mathewson [Mon, 31 Jan 2011 21:44:06 +0000 (16:44 -0500)]
Add compile-time check for AF_UNSPEC==PF_UNSPEC

14 years agoFix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson [Mon, 31 Jan 2011 21:37:27 +0000 (16:37 -0500)]
Fix http unit test on non-windows platforms without getaddrinfo

14 years agoBuild on systems without AI_PASSIVE
Nick Mathewson [Mon, 31 Jan 2011 21:32:05 +0000 (16:32 -0500)]
Build on systems without AI_PASSIVE

14 years agoTry to build correctly on platforms with no IPv6 support
Nick Mathewson [Mon, 24 Jan 2011 23:55:10 +0000 (18:55 -0500)]
Try to build correctly on platforms with no IPv6 support

14 years agoBuild correctly on platforms without sockaddr_storage
Nick Mathewson [Mon, 24 Jan 2011 23:29:20 +0000 (18:29 -0500)]
Build correctly on platforms without sockaddr_storage

14 years agoFall back to sscanf if we have no other way to implement strtoll
Nick Mathewson [Mon, 24 Jan 2011 23:22:32 +0000 (18:22 -0500)]
Fall back to sscanf if we have no other way to implement strtoll

14 years agoMerge remote branch 'origin/patches-2.0'
Nick Mathewson [Mon, 24 Jan 2011 23:02:11 +0000 (18:02 -0500)]
Merge remote branch 'origin/patches-2.0'

14 years agoMake --enable-gcc-warnings a no-op if not using gcc
Nick Mathewson [Mon, 24 Jan 2011 22:42:23 +0000 (17:42 -0500)]
Make --enable-gcc-warnings a no-op if not using gcc

14 years agoAllow use of --enable-silent-rules for quieter compilation with automake 1.11
Dave Hart [Mon, 24 Jan 2011 20:50:25 +0000 (15:50 -0500)]
Allow use of --enable-silent-rules for quieter compilation with automake 1.11

14 years agoMerge remote branch 'origin/patches-2.0'
Nick Mathewson [Thu, 13 Jan 2011 02:41:58 +0000 (21:41 -0500)]
Merge remote branch 'origin/patches-2.0'

14 years agoCorrectly free selectop fields when select_resize fails in select_init
Nick Mathewson [Thu, 13 Jan 2011 01:28:47 +0000 (20:28 -0500)]
Correctly free selectop fields when select_resize fails in select_init

14 years agoHandle resize failures in the select backend better.
Nick Mathewson [Fri, 7 Jan 2011 18:18:09 +0000 (13:18 -0500)]
Handle resize failures in the select backend better.

14 years agoUse event_err() only if the failure is truly unrecoverable.
Jardel Weyrich [Sat, 18 Dec 2010 04:40:22 +0000 (02:40 -0200)]
Use event_err() only if the failure is truly unrecoverable.

14 years agoDetect and handle more allocation failures.
Jardel Weyrich [Sat, 18 Dec 2010 03:07:27 +0000 (01:07 -0200)]
Detect and handle more allocation failures.

14 years agoMerge remote branch 'kev009/21_ac_use_system_extensions'
Nick Mathewson [Fri, 7 Jan 2011 17:31:30 +0000 (12:31 -0500)]
Merge remote branch 'kev009/21_ac_use_system_extensions'

14 years agoAdd evconfig-private to remaining files
Kevin Bowling [Fri, 7 Jan 2011 07:41:37 +0000 (00:41 -0700)]
Add evconfig-private to remaining files

14 years agoShell hack for weird mkdir -p commands
Kevin Bowling [Fri, 7 Jan 2011 07:37:05 +0000 (00:37 -0700)]
Shell hack for weird mkdir -p commands

14 years agoRemove use and reference to event-private.h
Kevin Bowling [Fri, 7 Jan 2011 07:34:22 +0000 (00:34 -0700)]
Remove use and reference to event-private.h

14 years agoMerge remote branch 'origin/patches-2.0'
Nick Mathewson [Thu, 6 Jan 2011 17:44:45 +0000 (12:44 -0500)]
Merge remote branch 'origin/patches-2.0'

14 years agoCheck for POLLERR, POLLHUP and POLLNVAL for Solaris event ports
Trond Norbye [Sun, 2 Jan 2011 09:17:15 +0000 (10:17 +0100)]
Check for POLLERR, POLLHUP and POLLNVAL for Solaris event ports

14 years agoPrefer the ./configure evconfig-private.h in MinGW, just in case.
Kevin Bowling [Mon, 3 Jan 2011 22:44:26 +0000 (15:44 -0700)]
Prefer the ./configure evconfig-private.h in MinGW, just in case.

14 years agoBackport libevent to vanilla Autoconf 2.59 (as used in RHEL5)
Kevin Bowling [Mon, 3 Jan 2011 22:09:21 +0000 (15:09 -0700)]
Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5)

14 years agoAdd an evconfig-private.h stub for Win32.
Kevin Bowling [Sun, 2 Jan 2011 15:48:12 +0000 (08:48 -0700)]
Add an evconfig-private.h stub for Win32.

14 years agoAdd an include guard
Kevin Bowling [Sun, 2 Jan 2011 15:47:46 +0000 (08:47 -0700)]
Add an include guard

14 years agoInclude evconfig-private.h in internal files for great good.
Kevin Bowling [Sun, 2 Jan 2011 15:43:45 +0000 (08:43 -0700)]
Include evconfig-private.h in internal files for great good.

14 years agoFix a comment warning and add evconfig-private.h to .gitignore
Kevin Bowling [Sun, 2 Jan 2011 15:05:33 +0000 (08:05 -0700)]
Fix a comment warning and add evconfig-private.h to .gitignore

14 years agoRemove event-private.h and switch to evconfig-private.h
Kevin Bowling [Sun, 2 Jan 2011 15:04:12 +0000 (08:04 -0700)]
Remove event-private.h and switch to evconfig-private.h

14 years agoUse a Configuration Header Template for evconfig-private.h
Kevin Bowling [Sun, 2 Jan 2011 14:51:23 +0000 (07:51 -0700)]
Use a Configuration Header Template for evconfig-private.h

14 years agoRevert "evconfig-private.h with recusive configure subdirs"
Kevin Bowling [Sun, 2 Jan 2011 14:29:45 +0000 (07:29 -0700)]
Revert "evconfig-private.h with recusive configure subdirs"

This reverts commit ed53d5ef8053af08186ef80dfc1647cff769fac8.

14 years agoevconfig-private.h with recusive configure subdirs
Kevin Bowling [Sun, 2 Jan 2011 13:35:05 +0000 (06:35 -0700)]
evconfig-private.h with recusive configure subdirs

14 years agoAdd AC_GNU_SOURCE to the fallback case.
Kevin Bowling [Sun, 2 Jan 2011 12:14:41 +0000 (05:14 -0700)]
Add AC_GNU_SOURCE to the fallback case.

14 years agoMerge remote branch 'origin/patches-2.0'
Nick Mathewson [Sun, 2 Jan 2011 05:59:20 +0000 (00:59 -0500)]
Merge remote branch 'origin/patches-2.0'

14 years agoFix compilation on Windows with NDEBUG
Nick Mathewson [Sun, 2 Jan 2011 02:37:21 +0000 (21:37 -0500)]
Fix compilation on Windows with NDEBUG

Dongsheng Song reports that when building on windows with NDEBUG, you
run into an attempt to do EVUTIL_ASSERT(x) where x is a bitfield,
which turns into _EVUTIL_NIL_CONDITION(x), which takes sizeof(x),
which is illegal.  This patch fixes _EVUTIL_NIL_CONDITION to work on
bitfields too.

14 years agoEliminate a couple more manual internal _GNU_SOURCE defines
Kevin Bowling [Thu, 23 Dec 2010 06:24:01 +0000 (23:24 -0700)]
Eliminate a couple more manual internal _GNU_SOURCE defines

14 years agoRemove internal usage of _GNU_SOURCE
Kevin Bowling [Thu, 23 Dec 2010 06:08:10 +0000 (23:08 -0700)]
Remove internal usage of _GNU_SOURCE

14 years agoAdd event-private.h to noinst_HEADERS
Kevin Bowling [Thu, 23 Dec 2010 06:00:59 +0000 (23:00 -0700)]
Add event-private.h to noinst_HEADERS

14 years agoFilter '# define' statements from autoconf and generate event-private.h
Kevin Bowling [Thu, 23 Dec 2010 05:53:03 +0000 (22:53 -0700)]
Filter '# define' statements from autoconf and generate event-private.h

14 years agoAdd AC_USE_SYSTEM_EXTENSIONS to configure.in.
Kevin Bowling [Thu, 23 Dec 2010 05:11:26 +0000 (22:11 -0700)]
Add AC_USE_SYSTEM_EXTENSIONS to configure.in.
Requires follow on patches for correctness and robustness.

14 years agoMerge branch 'file_offset_v2'
Nick Mathewson [Tue, 21 Dec 2010 00:30:13 +0000 (19:30 -0500)]
Merge branch 'file_offset_v2'

14 years agoRefactor addfile tests; add test for big files and for offsets
Nick Mathewson [Mon, 20 Dec 2010 23:40:03 +0000 (18:40 -0500)]
Refactor addfile tests; add test for big files and for offsets

14 years agoAdd CreateFileMapping file_segment implementation for win32
Nick Mathewson [Mon, 25 Oct 2010 16:29:39 +0000 (12:29 -0400)]
Add CreateFileMapping file_segment implementation for win32

14 years agoAdd support for mmaps with nonzero offset values. Needs testing.
Nick Mathewson [Mon, 25 Oct 2010 16:10:10 +0000 (12:10 -0400)]
Add support for mmaps with nonzero offset values.  Needs testing.

14 years agoAdd evbuffer_add_file_segment() so one fd can be used efficiently in more than one...
Nick Mathewson [Thu, 21 Oct 2010 23:45:49 +0000 (19:45 -0400)]
Add evbuffer_add_file_segment() so one fd can be used efficiently in more than one evbuffer_add_file at a time

14 years agoMerge branch 'epoll_table_v2'
Nick Mathewson [Thu, 16 Dec 2010 19:37:15 +0000 (14:37 -0500)]
Merge branch 'epoll_table_v2'

14 years agoReindent epoll_apply_one_change()
Nick Mathewson [Thu, 16 Dec 2010 19:36:09 +0000 (14:36 -0500)]
Reindent epoll_apply_one_change()

14 years agoClean up error handling in epoll_apply_one_change() a little
Nick Mathewson [Thu, 16 Dec 2010 19:25:04 +0000 (14:25 -0500)]
Clean up error handling in epoll_apply_one_change() a little

The old code was more or less:
   if (op == X && errno == FOO) {
     ...
   } else if (op == Y && errno == BAR) {
     ...
   }
but really we wanted to do a switch (op) to avoid needless checks
and branches.

This patch leaves the indentation a little weird so as to make it
easier to see what changed; the next patch will fix the indentation.

14 years agoReplace big chain of if/thens in epoll.c with a table lookup
Nick Mathewson [Sun, 24 Oct 2010 16:53:52 +0000 (12:53 -0400)]
Replace big chain of if/thens in epoll.c with a table lookup

This should save a bunch of branches by doing instead a lookup in a
nice static table.

To ensure correctness, the table is generated from a Python script,
included with this commit.

14 years agoUse GetSystemTimeAsFileTime to implement gettimeofday on win32.
Nick Mathewson [Thu, 2 Sep 2010 21:52:20 +0000 (17:52 -0400)]
Use GetSystemTimeAsFileTime to implement gettimeofday on win32.

It is (in my benchmarks) way faster than _ftime, though the
conversion process is not so straightforward.  In theory, it can
have a better granularity too, though in practice who knows what
you're getting.

14 years agoUse current event set rather than current pending change when deciding whether to...
Mike Smellie [Mon, 19 Jul 2010 02:18:31 +0000 (14:18 +1200)]
Use current event set rather than current pending change when deciding whether to no-op a del

This alters event_changelist_del to quash deletion of events that
didn't exist in the first place.

As far as I can see, the add,delete, dispatch case described in the
original comment will never happen.  The recorded change is a single
operation, not a queue.  This seems to leave actions to delete
events that never existed as the real targets for no-oping

14 years agoBump version in master to 2.1.0-alpha-dev
Nick Mathewson [Thu, 16 Dec 2010 17:59:22 +0000 (12:59 -0500)]
Bump version in master to 2.1.0-alpha-dev

14 years agoBump version to 2.0.10-stable-dev
Nick Mathewson [Thu, 16 Dec 2010 17:57:23 +0000 (12:57 -0500)]
Bump version to 2.0.10-stable-dev

14 years agoAdd changelog for 2.0.10-stable release-2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:31:08 +0000 (14:31 -0500)]
Add changelog for 2.0.10-stable

14 years agoAdd more acknowledgements to the readme for 2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:30:04 +0000 (14:30 -0500)]
Add more acknowledgements to the readme for 2.0.10-stable

14 years agoSet the version to 2.0.10-stable
Nick Mathewson [Wed, 15 Dec 2010 19:29:50 +0000 (14:29 -0500)]
Set the version to 2.0.10-stable

14 years agoEVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.
Evan Jones [Mon, 6 Dec 2010 19:17:44 +0000 (14:17 -0500)]
EVUTIL_ASSERT: Use sizeof() to avoid "unused variable" warnings.

14 years agoAdd stuff to whatsnew based on reading include changes since August.
Nick Mathewson [Thu, 9 Dec 2010 17:17:58 +0000 (12:17 -0500)]
Add stuff to whatsnew based on reading include changes since August.

14 years agoDocument that the cpu_hint is only used on Windows with IOCP for now
Nick Mathewson [Thu, 9 Dec 2010 17:17:11 +0000 (12:17 -0500)]
Document that the cpu_hint is only used on Windows with IOCP for now

14 years agoConsistentize tabs
Nick Mathewson [Thu, 9 Dec 2010 16:47:54 +0000 (11:47 -0500)]
Consistentize tabs

14 years agoRemove end-of-line whitespace
Nick Mathewson [Thu, 9 Dec 2010 16:43:12 +0000 (11:43 -0500)]
Remove end-of-line whitespace

14 years agotweak readme, whatsnew
Nick Mathewson [Thu, 9 Dec 2010 16:40:35 +0000 (11:40 -0500)]
tweak readme, whatsnew

14 years agoFix a signed/unsigned comparison in the last commit
Nick Mathewson [Tue, 7 Dec 2010 16:45:14 +0000 (11:45 -0500)]
Fix a signed/unsigned comparison in the last commit

14 years agoReject overlong http requests early when Expect:100-continue is set
Constantine Verutin [Tue, 7 Dec 2010 16:43:52 +0000 (11:43 -0500)]
Reject overlong http requests early when Expect:100-continue is set

14 years agotests: Use relative includes ("") instead of system includes (<>)
Evan Jones [Thu, 2 Dec 2010 19:13:33 +0000 (14:13 -0500)]
tests: Use relative includes ("") instead of system includes (<>)

14 years agotests: Use new event2 headers instead of old compatibility headers.
Evan Jones [Thu, 2 Dec 2010 19:09:52 +0000 (14:09 -0500)]
tests: Use new event2 headers instead of old compatibility headers.

14 years agoUse relative includes instead of system includes consistently.
Evan Jones [Thu, 2 Dec 2010 15:26:12 +0000 (10:26 -0500)]
Use relative includes instead of system includes consistently.

14 years agobufferevent-internal.h: Use the new event2/util.h header, not evutil.h
Evan Jones [Thu, 2 Dec 2010 15:27:06 +0000 (10:27 -0500)]
bufferevent-internal.h: Use the new event2/util.h header, not evutil.h

14 years agoCorrectly notify the main thread when activating an event from a subthread
Nick Mathewson [Thu, 2 Dec 2010 02:28:03 +0000 (21:28 -0500)]
Correctly notify the main thread when activating an event from a subthread

14 years agoMinor fix for IOCP shutdown handling fix
Kelly Brock [Tue, 30 Nov 2010 16:34:26 +0000 (11:34 -0500)]
Minor fix for IOCP shutdown handling fix

Call setsockopt() on the actual new socket, not on as->s, which was
set to INVALID_SOCKET.

14 years agoIncrement version to 2.0.9-rc-dev
Nick Mathewson [Tue, 30 Nov 2010 07:19:25 +0000 (02:19 -0500)]
Increment version to 2.0.9-rc-dev

14 years agoGive the correct date for 2.0.9-rc in the changelog release-2.0.9-rc
Nick Mathewson [Tue, 30 Nov 2010 06:21:00 +0000 (01:21 -0500)]
Give the correct date for 2.0.9-rc in the changelog

14 years agoIncrement version to 2.0.9-rc
Nick Mathewson [Tue, 23 Nov 2010 16:17:24 +0000 (11:17 -0500)]
Increment version to 2.0.9-rc

14 years agoBump VERSION_INFO to 5:0:0
Nick Mathewson [Tue, 23 Nov 2010 16:17:06 +0000 (11:17 -0500)]
Bump VERSION_INFO to 5:0:0

14 years agoChangelog and acknowledgments for 2.0.9-rc
Nick Mathewson [Tue, 23 Nov 2010 16:08:30 +0000 (11:08 -0500)]
Changelog and acknowledgments for 2.0.9-rc

14 years agoFix win32 build of http-server.c with unicode enabled
Nick Mathewson [Tue, 30 Nov 2010 05:53:16 +0000 (00:53 -0500)]
Fix win32 build of http-server.c with unicode enabled

14 years agoCorrectly detect timeouts during http connects
Nick Mathewson [Tue, 30 Nov 2010 05:05:54 +0000 (00:05 -0500)]
Correctly detect timeouts during http connects

14 years agoTry to fix an assertion failure related to close detection
Nick Mathewson [Tue, 30 Nov 2010 03:44:18 +0000 (22:44 -0500)]
Try to fix an assertion failure related to close detection

f700566c removed a line from evhttp_connection_stop_detectclose that
cleared the EVHTTP_CON_CLOSEDETECT flag.  I think this was an
accident, and suspect that it may be the cause of bug 3069555.

14 years agoPossible crash fix when freeing an underlying bufferevent of an openssl bufferevent
Nick Mathewson [Tue, 30 Nov 2010 03:14:54 +0000 (22:14 -0500)]
Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent

14 years agoMerge remote branch 'chrisd/http_continue'
Nick Mathewson [Tue, 30 Nov 2010 02:56:23 +0000 (21:56 -0500)]
Merge remote branch 'chrisd/http_continue'

14 years agoPreliminary support for Continue expectation in evhttp.
Christopher Davis [Tue, 30 Nov 2010 02:25:04 +0000 (18:25 -0800)]
Preliminary support for Continue expectation in evhttp.

14 years agomake http-server example code build on win32
Nick Mathewson [Tue, 30 Nov 2010 01:39:09 +0000 (20:39 -0500)]
make http-server example code build on win32

14 years agoFix http-server.c compilation on freebsd
Nick Mathewson [Tue, 30 Nov 2010 01:13:19 +0000 (20:13 -0500)]
Fix http-server.c compilation on freebsd

14 years agoMerge remote branch 'chrisd/http_fixes2'
Nick Mathewson [Mon, 29 Nov 2010 19:25:33 +0000 (14:25 -0500)]
Merge remote branch 'chrisd/http_fixes2'

14 years agoAdd a few more comments.
Christopher Davis [Mon, 29 Nov 2010 15:18:32 +0000 (07:18 -0800)]
Add a few more comments.

14 years agoadd http-server to gitignore
Nick Mathewson [Fri, 26 Nov 2010 18:29:56 +0000 (13:29 -0500)]
add http-server to gitignore

14 years agoFix a misplaced ) in http_server.c
Nick Mathewson [Fri, 26 Nov 2010 18:28:48 +0000 (13:28 -0500)]
Fix a misplaced ) in http_server.c

14 years agoMerge branch '20_empty_body'
Nick Mathewson [Fri, 26 Nov 2010 17:59:02 +0000 (12:59 -0500)]
Merge branch '20_empty_body'

14 years agoAdd a basic example of how to write a static HTTP server.
Nick Mathewson [Mon, 18 Oct 2010 17:44:05 +0000 (13:44 -0400)]
Add a basic example of how to write a static HTTP server.

14 years agoAdd evhttp server alias interface, correct flagging of proxy requests.
Christopher Davis [Fri, 5 Nov 2010 18:17:07 +0000 (11:17 -0700)]
Add evhttp server alias interface, correct flagging of proxy requests.

evhttp needs to be mindful of all hostnames and addresses that clients
use to contact the main server and vhosts to know the difference between
proxy requests and non-proxy requests.

14 years agoMerge remote branch 'github/20_once_fixes'
Nick Mathewson [Fri, 26 Nov 2010 04:03:46 +0000 (23:03 -0500)]
Merge remote branch 'github/20_once_fixes'

14 years agoFix snprintf related failures on IRIX.
Kevin Bowling [Wed, 24 Nov 2010 02:40:23 +0000 (19:40 -0700)]
Fix snprintf related failures on IRIX.

14 years agoIf not WIN32, include <sys/socket.h> in event2/util.h.
Kevin Bowling [Wed, 24 Nov 2010 02:26:34 +0000 (19:26 -0700)]
If not WIN32, include <sys/socket.h> in event2/util.h.

14 years agoxlC doesn't obey C99 comments here. autoconf isn't invoking full C99
Kevin Bowling [Tue, 23 Nov 2010 21:09:03 +0000 (14:09 -0700)]
xlC doesn't obey C99 comments here.  autoconf isn't invoking full C99
mode.

14 years agoAdd some checks since lack of TAILQ_FOREACH doesn't imply lack of FIRST,
Kevin Bowling [Tue, 23 Nov 2010 07:22:01 +0000 (00:22 -0700)]
Add some checks since lack of TAILQ_FOREACH doesn't imply lack of FIRST,
END, NEXT, or INSERT_BEFORE.  Quiet some warnings in XL C.

14 years agoReworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.
Kevin Bowling [Wed, 24 Nov 2010 02:09:08 +0000 (19:09 -0700)]
Reworked AIX __ss_family workaround to use AC_STRUCT_MEMBER.

14 years agoselect comes from <sys/select.h> according to POSIX.1-2001, or from a
Kevin Bowling [Tue, 23 Nov 2010 03:44:10 +0000 (20:44 -0700)]
select comes from <sys/select.h> according to POSIX.1-2001, or from a
variety of other standard headers on older systems, but not <select.h>.
AIX build fix.

14 years agoHandle evhttp PUT/POST requests with an empty body
Nick Mathewson [Wed, 24 Nov 2010 01:31:28 +0000 (20:31 -0500)]
Handle evhttp PUT/POST requests with an empty body

When we call evhttp_get_bodylen() [when transfer-encoding isn't set],
having req->ntoread == -1 means that we have no content-length.  But a
request with no content-length has no body!  We were treating the
absent content-length as meaning "read till closed", which only holds
for replies, not requests.

This patch also allows PATCH requests to have a body.

14 years agoRemove _event_initialized(); make event_initialized() a function(); make it consisten...
Nick Mathewson [Tue, 23 Nov 2010 18:08:07 +0000 (13:08 -0500)]
Remove _event_initialized(); make event_initialized() a function(); make it consistent on windows and non-windows

14 years agoDocument event_get_assignment
Nick Mathewson [Tue, 23 Nov 2010 17:26:46 +0000 (12:26 -0500)]
Document event_get_assignment

14 years agoNote that reentrant calls to libevent from logging cbs may fail badly
Nick Mathewson [Tue, 23 Nov 2010 17:26:34 +0000 (12:26 -0500)]
Note that reentrant calls to libevent from logging cbs may fail badly