|
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.
|
|
ce14defe
|
2013-12-13T11:34:22
|
|
Generate a dummy evconfig-private.h so things build properly.
Windows used to have an empty file for this before.
|
|
99c1dc32
|
2013-12-12T18:21:11
|
|
More work on adding tests to CMake project
|
|
e9fc014c
|
2013-12-12T16:33:20
|
|
Add all tests and benchmarks to CMake project.
Also fixed some minor issues with what's built.
|
|
e415196a
|
2013-12-09T18:05:32
|
|
Initial CMake commit.
|
|
3d105414
|
2013-12-09T16:58:16
|
|
Fix non-C89 variable declaration.
Microsofts C compiler does not support the C99 standard, so variables has
to be declared at the start of a scope.
|
|
e6b2a267
|
2013-12-09T16:54:57
|
|
Fix non-C89 variable declaration.
Microsofts C compiler does not support the C99 standard, so variables has
to be declared at the start of a scope.
|
|
45eba6ff
|
2013-12-06T10:50:17
|
|
Rename flush_outdated_host_addresses to clear_host_addresses
"flush" can imply writing something out to a file or connection before
clearing it; "clear" always means "remove". It's also potentially
misleading to say "outdated" here, since the function removes _all_
addresses regardless, not just certain outdated ones.
Also, don't free the lock in this function. Also reindent the function.
|
|
aeb8d345
|
2013-12-06T10:37:53
|
|
Merge remote-tracking branch 'origin/pr/86'
|
|
f03d3535
|
2013-12-06T17:06:20
|
|
bug fix for issues #293 evdns_base_load_hosts doesn't remove outdated addresses
As mentioned at https://sourceforge.net/p/levent/bugs/293/
created a small function "evdns_base_flush_outdated_host_addresses" which removes all the previous host addresses, if user wants to clean up the list of hosts can call and use this function.
Defination of this function is part of another patch.
|
|
954d2f94
|
2013-12-06T16:53:16
|
|
bug fix for issues #293 evdns_base_load_hosts doesn't remove outdated adresses
As mentioned at https://sourceforge.net/p/levent/bugs/293/
created a small function "evdns_base_flush_outdated_host_addresses" which removes all the previous requests of hosts , if user wants to clean up the list of hosts can call and use this function.
Requires function declaration to be added in include/event2/dns.h
Adding it in another patch for the same bug.
|
|
bd419471
|
2013-12-05T22:45:45
|
|
Clarifications in response to merge req. comments
|
|
c11e7d91
|
2013-12-05T17:25:56
|
|
start writing a changelog for 2.1.4-(beta?)
|
|
735d838b
|
2013-12-05T17:14:54
|
|
Merge remote-tracking branch 'origin/patches-2.0'
|
|
f9284c3e
|
2013-12-05T17:14:05
|
|
update the 2.0 changelog
|
|
a7384c78
|
2013-12-03T23:01:54
|
|
Add an option to trigger bufferevent event callbacks
|
|
61ee18b8
|
2013-12-03T22:49:57
|
|
Add an option to trigger bufferevent I/O callbacks
|
|
4ce242bd
|
2013-12-03T22:35:53
|
|
Add watermark introspection
|
|
13a9a020
|
2013-12-03T22:50:51
|
|
Document deferred eventcb behaviour
|
|
be7bf2c7
|
2013-12-03T22:36:45
|
|
Fix a typo
|
|
ccf432b9
|
2013-11-21T11:47:34
|
|
Try another doxygen tweak
|