|
8896a92b
|
2014-03-03T13:47:21
|
|
Merge remote-tracking branch 'origin/pr/110'
|
|
cbfa8da1
|
2014-03-03T11:23:55
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
b56611d7
|
2014-02-19T06:49:31
|
|
Add -Qunused-arguments for clang on macos
The clang compiler provided with macosx emits warnings like:
CC bufferevent.lo
clang: warning: argument unused during compilation: '-I .'
clang: warning: argument unused during compilation: '-I ./compat'
clang: warning: argument unused during compilation: '-I ./include'
clang: warning: argument unused during compilation: '-I ./include'
for each file being compiled. This generates a lot of noise during
compilation making it hard to see "real" errors. This patch mute
those warnings.
|
|
4545fa9b
|
2014-02-19T06:31:27
|
|
Add option to build shared library
|
|
3908a5e3
|
2014-02-24T15:07:38
|
|
Do not offer EV_FEATURE_EARLY_CLOSE if we have no EPOLLRDHUP
|
|
f24cba3b
|
2014-02-24T20:05:03
|
|
Merge pull request #97 from JoakimSoderberg/openwrt_fixes
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
|
|
f665d5cb
|
2014-02-24T10:32:00
|
|
Stop checking for inet_aton; we don't use it.
We had cmake and autoconf tests for the inet_aton function... but we
never actually use it any more.
(The autoconf tests still use the callability of inet_aton to decide
whether we need to link against -lresolv)
Reported by Harlan Stenn.
|
|
a0dd5df2
|
2014-02-19T06:29:58
|
|
Rename event_extras to event_extra
The library event_extras is named event_extra when building with
GNU autotools
|
|
ff266332
|
2014-02-17T12:43:10
|
|
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
Since epolltable-internal.h uses this define, it must be defined before that is included.
|
|
565ea26b
|
2014-02-14T22:51:11
|
|
Merge pull request #108 from trondn/cmake-build-fix
CMake build-related fixes
|
|
e0613212
|
2014-02-14T09:04:48
|
|
Add cmake-related files to .gitignore
|
|
ed99d92c
|
2014-02-14T08:26:07
|
|
Added -Qunused-arguments for clang on macosx
The CLang provided through Xcode on Mac OSX emits warnings for
all unused include paths making the compilation extremely verbose.
|
|
49efac53
|
2014-02-09T13:35:21
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
f2428a28
|
2014-02-09T13:29:26
|
|
bufferevent_pair: don't call downcast(NULL)
|
|
2ea15ed0
|
2014-01-27T14:54:55
|
|
Tweaked callbacks to prevent race condition (https://github.com/libevent/libevent/issues/104)
|
|
40830f16
|
2014-01-27T13:03:36
|
|
Tweaked callbacks to prevent race condition (https://github.com/libevent/libevent/issues/104)
|
|
8c0f0a9b
|
2014-01-24T16:30:17
|
|
Added a Travis-CI configuration file.
Initial stab at a first Travis config file.
|
|
ee0185e5
|
2014-01-22T11:55:26
|
|
Merge remote-tracking branch 'joakimsoderberg/win32_fixes'
|
|
99cd8187
|
2014-01-22T11:46:52
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
dfe1e526
|
2014-01-22T11:17:35
|
|
Check does arch have the epoll_create and __NR_epoll_wait syscalls.
Some architectures (like AArch64) do not have deprecated syscalls.
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
|
|
e212c548
|
2014-01-22T13:19:49
|
|
Check for OSX when checking for clang.
|
|
f1715b47
|
2014-01-22T12:12:51
|
|
Guard against EVENT_NOWIN32 being set during testing.
On windows all tests will fail if EVENT_NOWIN32 is set, since then there
will be no backend available.
Question is if we should simply disable the environment variable check on
Windows, since there's only one backend available anyway?
|
|
d7be7887
|
2014-01-22T11:15:17
|
|
Fix https-client compilation on Windows.
ssize_t is not defined. But using ssize_t for s in this context makes no
sense, since fread returns size_t.
|
|
d38d798b
|
2014-01-22T00:06:21
|
|
CMake: Get rid of python not found warning when regress tests turned off.
It would warn that python wasn't found when it was, just because the regress tests where turned off... confusing.
|
|
e423d420
|
2014-01-22T00:03:37
|
|
Fix CMake compile when OpenSSL is disabled.
|
|
43ffcf69
|
2014-01-21T15:47:44
|
|
Split epoll lookup table into a separate header file
It accounted for more than half the length of epoll.c, and it's
machine-generated, so we might as well keep it separate.
|
|
53d27938
|
2014-01-21T15:44:05
|
|
Expand EV_CLOSED documentation a bit
|
|
5c142a7e
|
2014-01-21T14:53:47
|
|
Merge remote-tracking branch 'origin/pr/98'
|
|
d03b5bf0
|
2014-01-21T14:29:00
|
|
Disclaimerize cmake a little in the README
|
|
4cb44fdf
|
2014-01-21T14:26:01
|
|
Merge remote-tracking branch 'joakimsoderberg/new_cmake'
Conflicts:
sample/https-client.c
|
|
ae1bd829
|
2014-01-21T19:19:30
|
|
Fix broken autotools build.
The move of the static *config.h files to a sub directory for WIN32 broke the autotools build. Use the proper subpath for that as well...
|
|
c2076824
|
2014-01-21T12:21:37
|
|
Fix a c90 warning
|
|
8b40a5b0
|
2014-01-21T11:35:21
|
|
Check if we're on OSX before disabling deprecation in le-proxy
|
|
4e143958
|
2014-01-21T11:30:27
|
|
Change all uses of WIN32 to _WIN32
|
|
20244671
|
2014-01-21T11:19:02
|
|
Fix include bug.
On systems where a previous version of Libevent is installed we don't want the system version of the headers to be included before the ones in the build tree. This happened on my OSX system where I had an ancient version of Libevent installed. It would then load the incorrect event-config.h and fail because the system introspection macros weren't set properly.
|
|
b1b69ac7
|
2014-01-17T23:20:42
|
|
Implemented EV_CLOSED event for epoll backend (EPOLLRDHUP).
- Added new EV_CLOSED event - detects premature connection close
by clients without the necessity of reading all the pending
data. Does not depend on EV_READ and/or EV_WRITE.
- Added new EV_FEATURE_EARLY_CLOSED feature for epoll.
Must be supported for listening to EV_CLOSED event.
- Added new regression test: test-closed.c
- All regression tests passed (test/regress and test/test.sh)
- strace output of test-closed using EV_CLOSED:
socketpair(PF_LOCAL, SOCK_STREAM, 0, [6, 7]) = 0
sendto(6, "test string\0", 12, 0, NULL, 0) = 12
shutdown(6, SHUT_WR) = 0
epoll_ctl(3, EPOLL_CTL_ADD, 7, {EPOLLRDHUP, {u32=7, u64=7}}) = 0
epoll_wait(3, {{EPOLLRDHUP, {u32=7, u64=7}}}, 32, 3000) = 1
epoll_ctl(3, EPOLL_CTL_MOD, 7, {EPOLLRDHUP, {u32=7, u64=7}}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...})
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYM...
write(1, "closed_cb: detected connection close "..., 45) = 45
|
|
8697b99c
|
2014-01-14T18:45:11
|
|
Forgotten headers for old nmake project compatability.
|
|
8d4cb35d
|
2014-01-14T18:41:58
|
|
Clean up the README some.
|
|
604b8cc4
|
2014-01-14T18:25:07
|
|
Update README with CMake build instructions.
|
|
d2bc39af
|
2014-01-14T18:24:43
|
|
Rename README to README.md and use markdown to format.
|
|
24d64666
|
2014-01-14T17:53:47
|
|
Fix so that old nmake project still builds.
|
|
fd42e70d
|
2014-01-14T17:37:58
|
|
Set USE_DEBUG=1 on EVENT__ENABLE_VERBOSE_DEBUG
|
|
49ab3632
|
2014-01-14T13:01:31
|
|
Some work on making it possible to simply do add_subdirectory() on the project.
|
|
4b754df9
|
2014-01-10T17:58:42
|
|
Fix typo
|
|
f3446ed5
|
2014-01-09T13:44:38
|
|
Add CMake config and install targets.
Make it easier for other projects to do find_package by creating config
files both in the build and install tree.
|
|
d240328d
|
2014-01-08T13:02:37
|
|
Fix even more coverity warnings.
|
|
860767e8
|
2014-01-08T12:46:09
|
|
Fix a couple of compilation warnings in regress_http.c
|
|
991b3620
|
2014-01-08T12:04:06
|
|
Remove spurious checks in evrpc.c error cases (coverity)
Coverity hates the case where you have a redundant NULL check after
using something.
|
|
544cf888
|
2014-01-08T11:58:50
|
|
Whoops; fix compilation in bench.c
|
|
ff7f7396
|
2014-01-08T11:54:56
|
|
Fix coverity warnings in benchmark tools.
Again, not harmful, but best to stay warning-free.
|
|
867f401f
|
2014-01-08T11:51:22
|
|
Fix a pile of coverity warnings in the unit tests
Most of these problems can only trigger when the tests fail, but it's
good hygiene to keep the code warning-free in any case.
|
|
8d15f57f
|
2014-01-07T16:59:26
|
|
Merge remote-tracking branch 'asweeny86/on-complete-cb'
|
|
b85f3987
|
2014-01-06T21:19:15
|
|
Update unit test to make sure that the callback happens after the output data is written
|
|
da86dda9
|
2014-01-06T20:36:31
|
|
evhttp_request_set_on_complete_cb to be more specific about what the function actually does and usage
|
|
f9e091bf
|
2014-01-06T12:11:30
|
|
Merge remote-tracking branch 'asweeny86/event-count-max'
|
|
b083ca05
|
2014-01-05T20:35:46
|
|
Provide on request complete callback facility
This patch provides the ability to receive a callback on the completion of a
request. The callback takes place immediately before the request's resources
are released.
|
|
26230a2d
|
2014-01-05T16:30:35
|
|
Added unit test for max event counts
|
|
efbd3dcf
|
2014-01-05T16:29:52
|
|
Fixed bug using wrong variable in max event compare
|
|
5173bef5
|
2013-12-30T14:06:20
|
|
Add access to max event count stats
This commit provides an interface for accessing and resetting the maximum
number of events in a given period. This information provides better insight
into event queue pressure.
|
|
4c8ebcd3
|
2013-12-24T15:02:02
|
|
Remove unneeded declaration in bufferevent-internal.h
|
|
254c04ec
|
2013-12-24T15:01:34
|
|
Fix needless bufferevent includes in evdns.c
|
|
88ecda3b
|
2013-12-24T14:37:30
|
|
Fix a couple of "#ifdef WIN32" instances
|
|
d1976f8e
|
2013-12-24T14:05:44
|
|
Sample HTTPS Client: Set hostname for SNI extension (by f69m)
Patch from f69m on SourceForge
|
|
62f596b7
|
2013-05-09T06:50:52
|
|
fix for ServFail from RIPE Atlas release
|
|
90786eb0
|
2013-12-24T12:59:36
|
|
Small tweaks to https-client.c
|
|
2fbc3b14
|
2013-12-24T12:45:22
|
|
Merge remote-tracking branch 'resetius/https'
|
|
471fbe3b
|
2013-12-24T12:27:24
|
|
Merge remote-tracking branch 'rbalint/from-forked-daapd'
|
|
a3172a41
|
2013-12-24T11:30:06
|
|
Minor optimizations on bufferevent_trigger options
By making BEV_TRIG_DEFER_CALLBACKS equal to BEV_OPT_DEFER_CALLBACKS,
and BEV_TRIG_IGNORE_WATERMARKS disjoint from BEV_OPT_*, we can save a
few operations in bufferevent_run_*, which is critical-path.
|
|
4dd3abd4
|
2013-12-24T11:20:52
|
|
Make bufferevent_trigger_nolock_() inline
Since most of its callers are using constant EV_READ or EV_WRITE, and
using constant 0 as its argument, this should eliminate most of the
overhead for this function in the fast case.
|
|
b4ef3def
|
2013-12-24T10:33:58
|
|
Merge remote-tracking branch 'mistotebe/bufferevent_trigger'
|
|
87fa2b00
|
2013-12-23T20:46:38
|
|
Unit tests for active_by_fd; unsupport active_by_fd(TIMEOUT)
[It turns out that event_base_active_by_fd(TIMEOUT) didn't actually
work right. Feel free to add it back in as a patch.]
|
|
48659433
|
2013-12-21T23:32:10
|
|
Add event_base_active_by_signal by analogy
|
|
5c9da9a8
|
2013-12-21T23:21:33
|
|
Sanity-check arguments to event_base_active_by_fd()
|
|
93369ff4
|
2013-12-21T23:15:41
|
|
Merge remote-tracking branch 'ghazel/event_base_active_by_fd'
|
|
974c60e1
|
2013-12-21T23:15:28
|
|
Refactor evmap_{io,signal}_active_() to tolerate bad inputs
|
|
db7acd13
|
2013-12-20T13:37:39
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
eaa79cd4
|
2013-12-20T13:37:04
|
|
Merge remote-tracking branch 'sourceforge/patches-2.0' into patches-2.0
Conflicts:
include/event2/event.h
|
|
8cd695bf
|
2013-12-20T13:31:29
|
|
Typo fixes from Linus Nordberg
|
|
cec62cb8
|
2013-12-20T13:31:29
|
|
Typo fixes from Linus Nordberg
|
|
dd413bd1
|
2013-12-19T12:03:49
|
|
Added EVENT__ENABLE_GCC_WARNINGS, turns all warnings into errors.
|
|
f7805939
|
2013-12-19T10:46:04
|
|
Only look for ZLib when it is used (if tests are included).
Also make the project language C.
|
|
4ac086ab
|
2013-12-19T10:54:52
|
|
Fix the "make verify" target on NetBSD
|
|
f2483f8b
|
2013-12-17T15:17:29
|
|
Add a "make verify_coverage" target generation coverage info.
Use lcov/gcov to gather coverage info for the tests (Only works with gcc/clang and make).
cmake -DEVENT__COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug ..
make
make verify_coverage
Current coverage (run on debian):
Line coverage 79.1 % 10231 / 12939
Function coverage 86.1 % 933 / 1083
|
|
0ef1d04e
|
2013-12-17T14:32:07
|
|
Get rid of unknown pragma warnings.
|
|
968e97bd
|
2013-12-17T14:31:22
|
|
Minimum required python version is 2.4.
Got rid of TODO... The version you specify to find_package is the minimum
version, so exactly what we want.
|
|
86df3eda
|
2013-12-17T14:07:14
|
|
Change the BSD license from 4 to 3-clause.
This makes it GPL compatible. Changing the license from 4 to 3-clause BSD
license is OK according to a Berkley announcement on July 22, 1999 by
William Hoskins, the director of the fofice of technology licensing for
Berkley:
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
|
|
2799b359
|
2013-12-17T14:01:21
|
|
Added a test for testing if kqueue works with pipes.
|
|
a831f2f7
|
2013-12-17T13:29:04
|
|
Fix kqueue support.
|
|
69c3516b
|
2013-12-17T13:28:23
|
|
Get rid of deprecation warnings for OpenSSL on OSX 10.7+
|
|
67e5d749
|
2013-12-16T18:10:32
|
|
Fix the make "verify" target on Windows.
Windows does not have the "unset" command, but this doesn't matter since
the problem that requires us to use unset doesn't happen on Windows.
Also did some minor cosmetic changes, and dependcy changes.
|
|
031a8030
|
2013-12-16T12:02:21
|
|
Clarify event_base_loop exit conditions
|
|
e053c4f0
|
2013-12-16T16:44:13
|
|
Added a "make verify" target.
This is more than for cosmetic purposes to match how it's done with autoconf.
Due to the fact that we use environment variables to turn off certain backends during the tests, simply running "ctest" or "make test" can result in failed tests.
This is because if you do "EVENT_NOEPOLL=yes && export EVENT_NOEPOLL" and then run the tests, when running the epoll tests, the EPOLL backend will be turned off. There is no way of unsetting an environment variable for a test in CMake, you can only set them. And since libevent simply checks if the environment variable is set (it doesn't check the actual value of it), this won't work.
So to remedy this, we create the "make verify" target that first unsets all the EVENT_NO* environment variables, and then runs ctest.
Also bumped the required CMake version from 2.6 to 2.8, since the set_test_properties(bla PROPERTIES ENVIRONMENT "SOME_VAR") requires 2.8
Added some explicit dependencies for the test programs to libevent, so they don't just fail if you try to run the tests without first doing "make"
|
|
7ea4159d
|
2013-12-16T16:37:51
|
|
Only test the event backends available on the system.
Fix how the CMake project adds the tests using the different backends. At
first we tried to do it exactly as it's done in test/test.sh.
However, test.sh uses a special program test-init to decide if a given
backend is available or not before running the actual tests. Doing it this way
will not be possible using CMake. Since then we would have to have the
test-init executable compiled at the time we run CMake, to know what tests
we should add. (And since CMake generates the make/project files that
compiles the executables, there's a catch 22).
Instead of deciding what tests to run this way, we simply use the result
of the CMake system introspection (that figures out what backends are
available) to decide what backend tests to add.
|
|
8f2af50f
|
2013-12-16T13:45:45
|
|
Don't segfault on no found event backend.
|
|
78da644f
|
2013-12-16T11:35:31
|
|
Fix bench_cascade program on Windows.
|
|
9bbce0b6
|
2013-12-16T11:34:14
|
|
Only include WIN32 getopt where it is used.
getopt is only used in the benchmark tests, don't include it in the core
lib...
|
|
c259d53c
|
2013-12-16T11:27:13
|
|
Add copyright and licensing files for CMake modules.
|
|
dbf2b517
|
2013-12-16T11:26:29
|
|
Use evutil_closesocket instead.
|
|
19222e52
|
2013-12-13T17:00:23
|
|
Added some GCC specific options.
- Added sample applications.
- Fixed the https-client to work on Windows kind of (No cert validation).
|
|
58fcd428
|
2013-12-13T12:39:50
|
|
Link libm on unix platforms.
|