./devel/libevent, Asynchronous event notification library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.1.12, Package name: libevent-2.1.12, Maintainer: pkgsrc-users

The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. Furthermore, libevent also support callbacks due
to signals or regular timeouts.

libevent is meant to replace the asynchronous event loop found in
event driven network servers. An application just needs to call
event_dispatch() and can then add or remove events dynamically
without having to change the event loop.

Currently, libevent supports /dev/poll, kqueue(2), event ports,
select(2), poll(2), and epoll(4). The internal event mechanism is
completely independent of the exposed event API, and a simple update
of libevent can provide new functionality without having to redesign
the applications.

Libevent additionally provides a sophisticated framework for buffered
network IO, with support for sockets, filters, rate-limiting, SSL,
zero-copy file transmission, and IOCP. Libevent includes support
for several useful protocols, including DNS, HTTP, and a minimal
RPC framework.


Required to run:
[security/openssl]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: cd55656a9b5bed630b08f05495230affb7996b21
RMD160: 1fdb4e00ee9fc1be5e91f61ccaa63dd847e9b341
Filesize: 1075.046 KB

Version history: (Expand)


CVS history: (Expand)


   2020-07-06 12:08:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
libevent: updated to 2.1.12

Changes in version 2.1.12-stable (05 Jul 2020)

This release contains mostly bug fixes (I decided not to port some features
that can be ported even without ABI breakage, if you cannot find feature that
you are interested in, please give us a note!)

Since 2.1.12 libevent will use github actions as main CI, since
it recommends itself better then travis/appveyor (and had been removed from
upstream).

Look carefully at "slightly touches the behaviour" section.

Below you will find some of changes (this list has been cleaned up from the
patches that touches only tests and similar):

CI:
 o Backport github actions to 2.1 (be3acd7c Azat Khuzhin)
 o Merge branch 'event_rpcgen.py-cleanup' (f0ded5f3, 48e04887 Enji Cooper)
 o Add API/ABI checker (using LVC) (709210d4, 2af1f6cc yuangongji)

test:
 o tinytest: support timeout on Windows (794e8f75 yuangongji)
 o Merge branch 'osx-clock' (e85afbe3 Azat Khuzhin)
 o test-ratelim: calculate timers bias (for slow CPUs) to avoid false-positive \ 
(8ad26d0b Azat Khuzhin)

fixes:
 o buffer: do not pass NULL to memcpy() from evbuffer_pullup() (5b063049 Azat \ 
Khuzhin)
 o http: fix undefined-shift in EVUTIL_IS*_ helpers (6b8d02a7 Azat Khuzhin)
 o Check error code of evhttp_add_header_internal() in evhttp_parse_query_impl() \ 
(97e28f09 Azat Khuzhin)
 o http: fix EVHTTP_CON_AUTOFREE in case of timeout (and some else) (1be25938 \ 
Azat Khuzhin)
 o evdns: Add additional validation for values of dns options (c2972453 ayuseleznev)
 o There is typo in GetAdaptersAddresses windows library. It should be \ 
iphlpapi.dll (891adda9 Aleksandr-Melnikov)
 o Merge branch 'EV_CLOSED-and-EV_ET-fixes' (db2efdf5 Azat Khuzhin)
 o Fix memory corruption in EV_CLOSURE_EVENT_FINALIZE with debug enabled \ 
(8ccd8f56 Jan Kasiak)
 o increase segment refcnt only if evbuffer_add_file_segment() succeeds \ 
(30662a3c yuangongji)
 o evdns: fix a crash when evdns_base with waiting requests is freed (6f8e0e97 \ 
ayuseleznev)
 o event_base_once: fix potential null pointer threat (2e9ceb16 chenguolong)
 o http: do not assume body for CONNECT (1b42270b Azat Khuzhin)
 o evbuffer_add_file: fix freeing of segment in the error path (5f017bde Azat \ 
Khuzhin)
 o Fix checking return value of the evdns_base_resolv_conf_parse() (fc51bf2c \ 
Azat Khuzhin)
 o Merge branch 'fix-signal-leak' (poll/select now needs reinit) (1c9cc07b Azat \ 
Khuzhin)

improvements:
 o evutil_time: improve evutil_gettimeofday on Windows (a8219143 Nick Grifka)
 o Support EV_CLOSED on linux for poll(2) (2530e7c6 Azat Khuzhin)
 o Parse IPv6 scope IDs. (f602211f Philip Homburg)
 o evutil_time: Implements usleep() using wait funtion on Windows (d42240d1 \ 
yuangongji)
 o evutil_time: detect and use _gmtime64_s()/_gmtime64() (f4a6152c yuangongji)

slightly touches the behaviour:
 o bufferevent: allow setting priority on socket and openssl type (4dd3acdd \ 
Nicolas J. Bouliane)
 o Fix EV_CLOSED detection/reporting (epoll only) (1df324d4 Azat Khuzhin) (XXX)
 o Revert "Warn if forked from the event loop during event_reinit()" \ 
(71f5c0d3 Azat Khuzhin)

samples:
 o https-client: load certificates from the system cert store on Windows \ 
(e9478640 yuangongji)

build fixes:
 o Do not use sysctl.h on linux (it had been deprecated) (d2871a37 Azat Khuzhin)
 o cmake: avoid problems from use of CMAKE_USE_PTHREADS_INIT (a62ec765 Paul Osborne)
 o Update list of cmake files for autotools dist archive (2016f017 Azat Khuzhin)
 o LibeventConfig.cmake: restore CMAKE_FIND_LIBRARY_SUFFIXES and \ 
LIBEVENT_STATIC_LINK default (640f9cf6 Mario Emmenlauer)
 o cmake: fix getaddrinfo checking error (dea51c2e yuangongji)
 o autoconf: fix getaddrinfo checking errors on mingw (b9bf7fa7 yuangongji)
 o Do not use shared global structures on CYGWIN (8a9b5655 Azat Khuzhin)
 o Added uninstall target check to cmakelists (3f1fb1f9 Dimo Markov)
 o Fix compilation without OPENSSL_API_COMPAT (921bdcdd Azat Khuzhin)
 o cmake: improve package config file (1c047618, baec84f2 yuangongji)
 o Link with iphlpapi only on windows (976f7d34 Azat Khuzhin)
 o autotools: fails build when need but can not find openssl (93174bb5 yuangongji)
 o Merge branch 'http-connect' (e2424229 Azat Khuzhin)
 o Fix compat with NetBSD >= 10 (5febb4e1 Kamil Rytarowski)
 o cmake: fix getrandom() detection (e0e5f3bd Azat Khuzhin)
 o arc4random: replace sysctl() with getrandom (on linux) (66ec78fd Azat Khuzhin)
 o Upgrade autoconf (after upgrading minimum required to 2.67) (45da7d9d yuangongji)
 o eliminate some C4267 warnings in Windows (9e468c77 yuangongji)
 o autotools: attach doxygen target into all target (5d1e8570 yuangongji)
 o cmake: attach doxygen target into all target (7a85300a yuangongji)
 o Change the minimum version of automake to 1.13 and autoconf to 2.67 (fdb8fb66 \ 
ygj6)
 o Add Uninstall.cmake.in into dist archive
   2020-02-19 16:21:35 by =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= | Files touched by this commit (1)
Log message:
libevent: fix PR pkg/54983

Remove symlinks before faking .pc files.
   2020-01-26 18:32:28 by Roland Illig | Files touched by this commit (981)
Log message:
all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
   2020-01-18 22:51:16 by Jonathan Perkin | Files touched by this commit (1836)
Log message:
*: Recursive revision bump for openssl 1.1.1.
   2019-11-03 11:39:32 by Roland Illig | Files touched by this commit (274)
Log message:
devel: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
   2019-09-20 13:36:28 by Adam Ciarcinski | Files touched by this commit (8) | Package updated
Log message:
libevent: updated to 2.1.11

Changes in version 2.1.11-stable

 This release contains one ABI breakage fix (that had been introduced in
 2.1.10, and strictly speaking this release breaks ABI again to make it
 compatible with 2.1.9 and less, please take a look at 18104973 for more
 details). Apart from that it contains some bug fixes, that grouped below.

 And even though the return value for evbuffer_setcb() had been changed it
 should ABI compatible (anyway that function is in -compat.h header).

 There is also one patch that introduce new functionality, this is 546a366c,
 to tune SO_RCVBUF/SO_SNDBUF in evdns, but one can count it as a bug-fix on
 the application level, since before you cannot tune this settings and hence
 you could stumble on problems.

 ABI breakage:
  o Protect min_heap_push_ against integer overflow.
  o Revert "Protect min_heap_push_ against integer overflow."

 functionality:
  o evdns: add new options -- so-rcvbuf/so-sndbuf

 build:
  o Change autoconf version to 2.62 and automake version to 1.11.2
  o cmake: install shared library only if it was requested
  o Missing <winerror.h> on win7/MinGW(MINGW32_NT-6.1)/MSYS
  o cmake: set library names to be the same as with autotools
  o Enable _GNU_SOURCE for Android
  o Enable kqueue for APPLE targets
  o autotools: do not install bufferevent_ssl.h under --disable-openssl
  o cmake: link against shell32.lib/advapi32.lib
  o Add README.md into dist archive
  o cmake: add missing autotools targets (doxygen, uninstall, event_rpcgen.py)
  o m4/libevent_openssl.m4: fix detection of openssl
  o Fix detection of the __has_attribute() for apple clang [ci skip]

 lib:
  o buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM
  o Warn if forked from the event loop during event_reinit()
  o evutil: set the have_checked_interfaces in evutil_check_interfaces()

 samples:
  o https-client: correction error checking

Changes in version 2.1.10-stable

 This release contains mostly fixes (some evbuffer oddity, AF_UNIX handling in
 http server, some UB fixes and others) but also some new functionality
 (without ABI breakage as usual) and now dist archive can be used for building
 on windows (getopt had been added into it).

 Above you will find changelog for this particular release (but with some
 trivial fixes pruned out from it - to make it a little bit more informative).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable

 dist:
  o Add getopt into dist archive

 functionality:
  o evdns: add DNS_OPTION_NAMESERVERS_NO_DEFAULT/EVDNS_BASE_NAMESERVERS_NO_DEFAULT

  o Add support for EV_TIMEOUT to event_base_active_by_fd

 fixes:
  o Merge branch 'evbuffer-fixes-806-v2'
  o Merge branch 'issue-807-accept4-getnameinfo-AF_UNIX'
    Azat Khuzhin)
  o kqueue: Avoid undefined behaviour. (e70e18e9 Tobias Stoeckmann)
  o Prevent integer overflow in kq_build_changes_list.
  o evdns: fix lock/unlock mismatch in evdns_close_server_port()
  o Merge remote-tracking branch 'official/pr/804' -- Enforce limit of NSIG
    signals
  o Protect min_heap_push_ against integer overflow.
  o le-proxy: initiate use of the Winsock DLL
  o Fix leaks in error path of the bufferevent_init_common_() (bb0f8fe7 Azat Khuzhin)
  o buffer: make evbuffer_prepend() of zero-length array no-op
  o Merge branch 'evbuffer-empty-chain-handling'
  o Don't loose top error in SSL
  o Remove needless check for arc4_seeded_ok
  o Merge pull request 769 from sungjungk/fix-return-handling

 build:
  o Define `_GNU_SOURCE` properly/consistently per autoconf
  o signal: guard __cdecl definition with #ifdef
  o Link test/regress with event_core/event_extra over event

 tests:
  o Use kill() over raise() for raising the signal (fixes osx 10.14 with
    kqueue)
  o tinytest: implement per-test timeout (via alarm() under !win32 only)

Changes in version 2.1.9-beta

 This changelog will differs from other releases in the next few clauses:
 - contains only highlighted changes (so now it will not contains a lot of
   patches that fixes some stuff in regression tests, typos, leaks fixes in
   samples and so forth)
 - no authors (since merge commits breaks them anyway, but AUTHORS sections in
   README will be kept up to date)
 - group name trimmed from commit subjects trimmed
 - it's been 2 years since the previoius release, so it is pretty huge

 And I think that this is more useful, so from now on it will always has the
 same look (until there will too many objections of course).

 To view full changelog please use git:
   git log --format='  o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta

 dist archive:
  o Add cmake rules into dist archive
  o Add missing print-winsock-errors.c into dist archive
  o Include openssl-compat.h into dist archive

 core:
  o Merge branch 'check-O_NONBLOCK-in-debug'
  o Merge branch 'event-ET-636-v2'
  o Fix visibility issues under (mostly on win32)

  o Define __EXT_POSIX2 for QNX
  o Cleanup __func__ detection
  o Add convenience macros for user-triggered events
  o Notify event base if there are no more events, so it can exit without delay
  o Fix base unlocking in event_del() if event_base_set() runned in another thread
  o If precise_time is false, we should not set EVENT_BASE_FLAG_PRECISE_TIMER
  o Fix race in access to ev_res from event loop with event_active()
  o Return from event_del() after the last event callback termination

 http:
  o Merge branch 'http-EVHTTP_CON_READ_ON_WRITE_ERROR-fixes-v2'
  o Preserve socket error from listen across closesocket cleanup
  o fix connection retries when there more then one request for connection
  o improve error path for bufferevent_{setfd,enable,disable}()
  o Fix conceivable UAF of the bufferevent in evhttp_connection_free()
  o Merge branch 'http-request-line-parsing'
  o Fix evhttp_connection_get_addr() fox incomming http connections
  o fix leaks in evhttp_uriencode()
  o CONNECT method only takes an authority
  o Allow bodies for GET/DELETE/OPTIONS/CONNECT
  o Do not crash when evhttp_send_reply_start() is called after a timeout.
  o Fix crashing http server when callback do not reply in place
  o fix handling of close_notify (ssl) in http with openssl bufferevents

 evrpc:
  o use *_new_with_arg() to match function prototype
  o avoid NULL dereference on request is not EVHTTP_REQ_POST

 regression tests:
  o Merge branch 'TT_RETRIABLE'

 bufferevent:
  o Merge branch 'iocp-fixes'
  o Merge branch 'be-wm-overrun-v2'
  o bufferevent_socket_connect{,_hostname}() missing event callback and use ret code
  o don't fail be_null_filter if bytes are copied
  o Call underlying bev ctrl GET_FD on filtered bufferevents

 bufferevent_openssl/openssl:
  o Merge branch 'ssl_bufferevent_wm_filter-fix'
  o be_openssl: avoid leaking of SSL structure
  o Fix build with LibreSSL 2.7
  o Add missing includes into openssl-compat.h
  o Explicitly call SSL_clear when reseting the fd.
  o Unbreak build with LibreSSL after openssl 1.1 support added

 samples:
  o Merge branch 'sample-http-server'
  o sample/https-client: use host SSL certificate store by default

 listener:
  o ipv6only socket bind support
  o Merge branch 'listener-immediate-close'
  o Merge branch 'evconnlistener-do-not-close-client-fd'

 evdns:
  o evdns: handle NULL filename explicitly
  o Merge branch 'evdns_getaddrinfo-race-fix'
  o Generating evdns_base_config_windows_nameservers docs on all platforms

 utils:
  o Merge branch 'evutil_found_ifaddr-dev'
  o Avoid possible SEGVs in select() (in unit tests)
  o Port `event_rpcgen.py` and `test/check-dumpevents.py` to Python 3.

 buffer:
  o Fix assert() condition in evbuffer_drain() for IOCP
  o fix incorrect unlock of the buffer mutex (for deferred callbacks)
  o Fix wrong assert in evbuffer_drain()

 cmake:
  o fix checking of devpoll backend (like in autotools, by devpoll.h existence)
  o support static runtime (MSVC)
  o do not build both (SHARED and STATIC) for MSVC/win32
  o introduce EVENT__LIBRARY_TYPE option
  o ensure windows dll's are installed as well as lib files
  o Fix generation of LibeventConfig.cmake for the installation tree
  o fix pkgconfig generation (copy-paste typo)
  o Merge branch 'cmake-missing-bits'
  o Fix detection of timerfd_create() in CMake.
  o Merge branch 'cmake-configure-fixes-v2'
  o Do not add epoll_sub (syscall wrappers) for epoll in cmake
  o Fix RPATH for APPLE

 autotools:
  o include win32 specific headers for socklen_t detection on win32/mingw
  o Ignore evconfig-private.h for autotools
  o config.h can't be prefixed unconditionally
  o Merge branch 'pull-628'
  o Provide Makefile variables LIBEVENT_{CFLAGS,CPPFLAGS,LDFLAGS}
  o confirm openssl is working before using
  o pass $(OPENSSL_INCS) for samples (FTBFS macOS)
  o Add configure check for midipix
  o Fix tests with detached builds

 build:
  o Fix arc4random_addrandom() detecting and fallback (regression)
  o Merge branch 'win32-fixes'
  o Merge branch 'fix-openssl-linking'
  o Merge branch 'fix-struct-linger'

 CI:
  o travis-ci/appveyor now uses fast_finish+allow_failures

  o Merge branch 'travis-ci-osx-fixes'
  o Merge branch 'win64-fixes'
   2017-09-26 19:57:36 by Andreas Gustafsson | Files touched by this commit (3)
Log message:
libevent: Fix issue #509

Do not crash when evhttp_send_reply_start() is called after
a timeout.  See https://github.com/libevent/libevent/issues/509.
   2017-09-23 05:24:55 by Maya Rashish | Files touched by this commit (2)
Log message:
libevent: provide a no-op fallback definition of SA_RESTART

Using 0 as a value because the value varies by OS, for safety
QNX 6.5 build fix reported by Jan Danielsson