Nick Mathewson
5e161c66c5
Add an include to evrpc-internal to fix openbsd compilation warning
2014-03-12 18:12:43 -04:00
Nick Mathewson
4947c1852f
Heap-allocate zlib data structure in regress_zlib tests
2014-03-12 14:29:15 -04:00
Nick Mathewson
57abb35947
Fix consts in WIN32-Code/getopt*.[ch]
2014-03-12 14:06:41 -04:00
Nick Mathewson
58408eedd8
Fix duplicate paragraph in evbuffer_ptr documentation
2014-03-12 14:06:02 -04:00
Nick Mathewson
af9b2a7ae0
Initialize async bufferevent timeout CBs unconditionally
...
This is a fix for bug #93 on nmathewson/Libevent.
2014-03-12 13:25:02 -04:00
Nick Mathewson
462e6b609b
add a cast to https-client.c
2014-03-12 12:45:41 -04:00
Joakim Söderberg
2b41bcf8ea
Export event_extra not event_extras.
2014-03-07 18:09:56 +01:00
Nick Mathewson
7a80476768
Update to the latest version of tinytest
...
This brings us up to tinytest 709a36ba63ff16d8
2014-03-06 18:09:00 -05:00
Nick Mathewson
239d8345be
Fix 'make distcheck' by adding regress.gen.[ch] to DISTCLEANFILES
...
Patch from Harlan Stenn.
2014-03-06 10:18:09 -05:00
Nick Mathewson
980597215d
Move assert(ev) to before we use ev in EV_CLOSURE_EVENT_FINALIZE case
...
Based on a patch from Harlan Stenn.
2014-03-06 10:09:03 -05:00
Nick Mathewson
8896a92b07
Merge remote-tracking branch 'origin/pr/110'
2014-03-03 13:47:21 -05:00
Nick Mathewson
cbfa8da179
Merge remote-tracking branch 'origin/patches-2.0'
2014-03-03 11:23:55 -05:00
Trond Norbye
b56611d705
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.
2014-03-03 11:05:41 -05:00
Trond Norbye
4545fa9b68
Add option to build shared library
2014-02-25 14:57:24 +01:00
Nick Mathewson
3908a5e3d0
Do not offer EV_FEATURE_EARLY_CLOSE if we have no EPOLLRDHUP
2014-02-24 15:07:38 -05:00
Nick Mathewson
f24cba3bc0
Merge pull request #97 from JoakimSoderberg/openwrt_fixes
...
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
2014-02-24 20:05:03 +00:00
Nick Mathewson
f665d5cb27
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.
2014-02-24 10:33:16 -05:00
Trond Norbye
a0dd5df20a
Rename event_extras to event_extra
...
The library event_extras is named event_extra when building with
GNU autotools
2014-02-19 06:38:00 +01:00
Joakim Soderberg
ff26633226
BUGFIX: Fix compilation on systems with EPOLLRDHUP undefined.
...
Since epolltable-internal.h uses this define, it must be defined before that is included.
2014-02-17 12:43:10 +00:00
Nick Mathewson
565ea26bed
Merge pull request #108 from trondn/cmake-build-fix
...
CMake build-related fixes
2014-02-14 22:51:11 -05:00
Trond Norbye
e061321207
Add cmake-related files to .gitignore
2014-02-14 09:16:14 +01:00
Trond Norbye
ed99d92c01
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.
2014-02-14 09:15:27 +01:00
Nick Mathewson
49efac5356
Merge remote-tracking branch 'origin/patches-2.0'
2014-02-09 13:35:21 -05:00
Nick Mathewson
f2428a284b
bufferevent_pair: don't call downcast(NULL)
2014-02-09 13:29:26 -05:00
John Ohl
2ea15ed0f6
Tweaked callbacks to prevent race condition ( https://github.com/libevent/libevent/issues/104 )
2014-01-27 14:54:55 -05:00
John Ohl
40830f1644
Tweaked callbacks to prevent race condition ( https://github.com/libevent/libevent/issues/104 )
2014-01-27 13:03:36 -05:00
Joakim Soderberg
8c0f0a9b0e
Added a Travis-CI configuration file.
...
Initial stab at a first Travis config file.
2014-01-24 18:24:38 +01:00
Nick Mathewson
ee0185e534
Merge remote-tracking branch 'joakimsoderberg/win32_fixes'
2014-01-22 11:55:26 -05:00
Nick Mathewson
99cd818741
Merge remote-tracking branch 'origin/patches-2.0'
2014-01-22 11:46:52 -05:00
Marcin Juszkiewicz
dfe1e526f5
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>
2014-01-22 11:45:45 -05:00
Joakim Soderberg
e212c5486d
Check for OSX when checking for clang.
2014-01-22 13:19:49 +01:00
Joakim Soderberg
f1715b471d
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?
2014-01-22 12:12:51 +01:00
Joakim Soderberg
d7be788780
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.
2014-01-22 11:15:17 +01:00
Joakim Söderberg
d38d798b25
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.
2014-01-22 00:06:21 +01:00
Joakim Söderberg
e423d42018
Fix CMake compile when OpenSSL is disabled.
2014-01-22 00:03:37 +01:00
Nick Mathewson
43ffcf6977
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.
2014-01-21 16:15:21 -05:00
Nick Mathewson
53d279389a
Expand EV_CLOSED documentation a bit
2014-01-21 15:44:05 -05:00
Nick Mathewson
5c142a7ee9
Merge remote-tracking branch 'origin/pr/98'
2014-01-21 14:53:47 -05:00
Nick Mathewson
d03b5bf0bc
Disclaimerize cmake a little in the README
2014-01-21 14:29:00 -05:00
Nick Mathewson
4cb44fdf56
Merge remote-tracking branch 'joakimsoderberg/new_cmake'
...
Conflicts:
sample/https-client.c
2014-01-21 14:26:01 -05:00
Joakim Söderberg
ae1bd829d5
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...
2014-01-21 19:19:30 +01:00
Nick Mathewson
c2076824a3
Fix a c90 warning
2014-01-21 12:21:37 -05:00
Joakim Söderberg
8b40a5b08f
Check if we're on OSX before disabling deprecation in le-proxy
2014-01-21 11:35:21 +01:00
Joakim Söderberg
4e1439588f
Change all uses of WIN32 to _WIN32
2014-01-21 11:30:27 +01:00
Joakim Söderberg
20244671cd
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.
2014-01-21 11:19:02 +01:00
Diego Giagio
b1b69ac7c1
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
2014-01-17 23:20:42 -02:00
Joakim Soderberg
8697b99cd4
Forgotten headers for old nmake project compatability.
2014-01-14 18:45:11 +01:00
JoakimSoderberg
8d4cb35dda
Clean up the README some.
2014-01-14 18:41:58 +01:00
Joakim Soderberg
604b8cc4d1
Update README with CMake build instructions.
2014-01-14 18:25:07 +01:00
Joakim Soderberg
d2bc39afd0
Rename README to README.md and use markdown to format.
2014-01-14 18:24:43 +01:00