Log

Author Commit Date CI Message
cui fliter 1c204d55 2022-06-13T04:58:50 Fix some typos (#1284) Signed-off-by: cuishuang <imcusg@gmail.com>
zhongzedu 5cc2ff88 2022-05-09T16:33:36 fix grammar in comment
Azat Khuzhin 41239c9d 2022-05-12T07:37:19 https-client: fix connect to ipv6 address with square brackets getaddrinfo() cannot process addresses like "[::1]", only "::1" Fixes: #1275
Syedh30 e339880f 2022-04-29T19:40:29 include/event.h: include <event2/util.h> over deprecatd <evutil.h> Fixes: #1263
Igor Klemenski 21e28626 2022-04-06T14:35:00 Fix mingw pipeline (by using correct PATH to msys64) I found the correct path by looking at the _Disable Key Refresh_ step in _mingw::autotools::set up msys2_ task (https://github.com/rectified95/libevent/runs/5858227589?check_suite_focus=true) C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Content -path **D:\a\_temp\msys64**\etc\post-install\07-pacman-key.post -Raw) ...
Igor Klemenski 097ff9a4 2022-04-06T13:44:27 Fix windows pipeline (by updating vcpkg version to latest) The Windows CI is failing at the prepare vcpkg step while installing zlib Changing the vcpkg commit hash to point to latest release https://github.com/microsoft/vcpkg/releases/tag/2022.03.10 as opposed to sometime in 2019 to see if that fixes it.
moonlightsh 66861f88 2022-03-10T23:58:36 Require libevent_core not libevent for pkg-config libevent library itself had been deprecated long time ago. Fixes: #1213
Azat Khuzhin 6349e94a 2022-03-10T23:11:14 Do not install RPATH for install tree by default In ce8be2385b5fee16859a630fca0c98ad290c8e21 ("cmake: set rpath for libraries on linux") RPATH was first instroduced. Later in 6d09efe8686de824adf3d8810bbe0d5c386643e4 ("Set RPATH only if installation is done into non system directory") it was set only if it was installed to non system directory. But absolute RPATH not a good default, let's change this. Fixes: #920
Jay Freeman (saurik) 3da71856 2022-02-12T22:53:11 Fix build w/o OpenSSL by w/ MbedTLS In 78fa3971be892194aa168c04fc34bf5f2cd99b99 from https://github.com/libevent/libevent/pull/1241#commitcomment-63865496 a new "if MBEDTLS" block was added to include/include.am. This is not parsed by automake as it isn't on the first column, resulting in a subsequent error in the build. From [1]: > The if, else, and endif statements should not be indented, i.e., start on column one. [1]: https://www.gnu.org/software/automake/manual/html_node/Usage-of-Conditionals.html Fixes: #1251 Fixes: google/oss-fuzz#7149
Azat Khuzhin 6d09efe8 2022-01-15T22:06:58 Set RPATH only if installation is done into non system directory v2: use CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES Fixes: #1245
Dmitry Ilyin 78fa3971 2022-01-15T08:30:26 Fix make install failed when Automake used and both OpenSSL and MbedTLS are activated Issue: https://github.com/libevent/libevent/pull/1241#commitcomment-63865496
Jessica Clarke a9595ccd 2021-12-21T13:15:58 regress_ssl: Use intptr_t when shoving an int into a void * Currently the code uses long, but long does not always have the same representation as a pointer, such as on 64-bit Windows where long is only 32-bit due to its unususal LLP64 ABI, but also on CHERI, and thus Arm's prototype Morello architecture, where C language pointers are represented as hardware capabilities, which have bounds, permissions and other metadata to enforce spatial memory safety. Both of these cases warn when casting a long to a pointer (Windows due to long being shorter and thus it being likely you've truncated the address, and CHERI due to long not having any capability metadata like pointers and thus it being likely you've stripped the metadata, with the resulting "null-derived" capability destined to trap if dereferenced), and in both cases casting to intptr_t as the intermediate type instead will get rid of those warnings.
Azat Khuzhin 09e9fed2 2021-12-21T08:47:00 test: fix leak in http/cancel_*server_timeout tests Fixes: #1242
Dmitry Ilyin 2db55e43 2021-12-15T21:27:21 Install bufferevent_ssl.h with MbedTLS support also
Yongsheng Xu cd6a41ec 2021-12-10T11:05:13 feat: add `evdns_base_get_nameserver_fd` method To get underlying udp socket fd.
moonlightsh 12cedc8a 2021-11-17T08:40:40 Fix deadlock in case of evconnlistener_disable() in parallel with callback I've got an issue when stop evconnlistener not in the event_base_loop() thread. evconnlistener_disable() acquired lev->lock, if the same time, user callbacks is runing, the event thread released lock, after callback finished, it try to aquire the lock again, I think this makes conflict: Here is backtraces: thread 1: 0 __lll_lock_wait (futex=futex@entry=0x555555559a60, private=0) at lowlevellock.c:52 1 0x00007ffff7f2a131 in __GI___pthread_mutex_lock (mutex=0x555555559a60) at ../nptl/pthread_mutex_lock.c:115 2 0x00007ffff7f424c9 in evthread_posix_lock (mode=0, lock_=0x555555559a60) at evthread_pthread.c:79 3 0x00007ffff7f7dc12 in listener_read_cb (fd=7, what=2, p=0x5555555599a0) at listener.c:439 4 0x00007ffff7f6d758 in event_persist_closure (base=0x555555559370, ev=0x5555555599d8) at event.c:1645 5 0x00007ffff7f6da60 in event_process_active_single_queue (base=0x555555559370, activeq=0x5555555597e0, max_to_process=2147483647, endtime=0x0) at event.c:1704 6 0x00007ffff7f6e018 in event_process_active (base=0x555555559370) at event.c:1805 7 0x00007ffff7f6e92a in event_base_loop (base=0x555555559370, flags=0) at event.c:2047 8 0x0000555555555449 in main () at test_listen.c:67 thread 2: 0 futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555555559858) at ../sysdeps/nptl/futex-internal.h:183 1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x555555559800, cond=0x555555559830) at pthread_cond_wait.c:508 2 __pthread_cond_wait (cond=0x555555559830, mutex=0x555555559800) at pthread_cond_wait.c:638 3 0x00007ffff7f426f3 in evthread_posix_cond_wait (cond_=0x555555559830, lock_=0x555555559800, tv=0x0) at evthread_pthread.c:162 4 0x00007ffff7f70bc5 in event_del_nolock_ (ev=0x5555555599d8, blocking=2) at event.c:2934 5 0x00007ffff7f70748 in event_del_ (ev=0x5555555599d8, blocking=2) at event.c:2821 6 0x00007ffff7f707a1 in event_del (ev=0x5555555599d8) at event.c:2830 7 0x00007ffff7f7d76e in event_listener_disable (lev=0x5555555599a0) at listener.c:343 8 0x00007ffff7f7d6e5 in evconnlistener_disable (lev=0x5555555599a0) at listener.c:325 9 0x00005555555552c3 in disable_thread (arg=0x5555555599a0) at test_listen.c:27 10 0x00007ffff7f27609 in start_thread (arg=<optimized out>) at pthread_create.c:477 11 0x00007ffff7e4e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Azat Khuzhin e1ecc6fa 2021-12-02T10:27:16 Switch coverage to ubuntu 18.04 It seems that there is no 16.04 image anymore, since github actions was not able to find it for 24 hours [1]. [1]: https://github.com/libevent/libevent/actions/runs/1522612189
fanquake 9aa4eb09 2021-11-24T08:44:03 build: use modern ax_pthread macro acx_pthread became ax_pthread in 2009 and the macro has seen lots of updates since then. This change switches to using the latest version.
Azat Khuzhin d076d2df 2021-11-30T22:41:05 Revert "evdns: do not check server_req twice" That was wrong assumption. This reverts commit 991f0ed3d86ffca0c017ab83cd239289912bdaad. Fixes: #1231
Azat Khuzhin 3b9c7dd6 2021-11-30T22:37:32 ci: remove deprecated windows-2016 image Refs: https://github.blog/changelog/2021-10-19-github-actions-the-windows-2016-runner-image-will-be-removed-from-github-hosted-runners-on-march-15-2022
Theo Buehler 883630f7 2021-11-21T21:38:20 Don't define BIO_get_init() for LibreSSL 3.5+ BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type will become opaque, so the existing macro will break the build.
Azat Khuzhin f64f60a2 2021-11-30T22:22:43 Merge #1230 -- build: remove inconsistently used x-prefix comparisons * upstream/pr/1230: build: fix typos in ax_check_funcs_ex.m4 build: remove inconsistently used x-prefix comparisons
fanquake 80f3ab01 2021-11-24T14:44:48 build: fix typos in ax_check_funcs_ex.m4
fanquake 082941ed 2021-11-24T14:41:33 build: remove inconsistently used x-prefix comparisons Given that these are already used inconsistently with `test` checks, it makes sense to consolidate to not use the x-prefix comparisons at all. In any case, it would be nice to think we no longer have to work around a problem that existed in shells many, many years ago. More info: https://github.com/koalaman/shellcheck/wiki/SC2268 https://www.vidarholen.net/contents/blog/?p=1035
Azat Khuzhin 0c217f4f 2021-11-22T00:05:27 Fix comment for evdns_base_new()
Christopher Chavez 89505f85 2021-11-11T20:12:14 CheckWorkingKqueue.cmake: fix missing headers Avoid implicitly declaring functions memset() and exit() as it is considered an error by some compilers (e.g. Xcode clang 12 and later)
Tomas Gonzalez 9a38bc5f 2021-11-01T10:01:06 evutil: Fix evutil_freeaddrinfo During testing on win32, util/getaddrinfo failed with NULL hint info r = evutil_getaddrinfo("www.google.com", NULL, NULL, &ai); throwing a critical heap exception when evutil_freeaddrinfo is called. This is because of improper use of freeaddrinfo when nodes within the ai structure are allocated using mm_malloc or mm_calloc (EVUTIL_AI_LIBEVENT_ALLOCATED) This adds the flag in apply_socktype_protocol_hack and walks the linked list in evutil_freeaddrinfo removing linked list nodes that are custom allocated before calling freeaddrinfo.
Thomas Perrot 3daebf30 2021-09-29T13:50:35 test: retriable tests are marked failed only when all attempts have failed Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Azat Khuzhin 048907a5 2021-09-19T15:52:02 github/workflows/macos.yml: fix test step name
Azat Khuzhin 357dca4f 2021-09-19T15:59:57 Merge branch 'skip-tests' -- fix/skip some tests to avoid complete check failures * skip-tests: test: add --retries-delay (and set to 1 second by default) test: add --retries argument Add -Wno-void-pointer-to-enum-cast (we use this hack in tests) test/regress_http: mark data_length_constraints as retriable github/workflows/mingw: use ctest --output-on-failure test/dns: mark TCP tests as retriable test/regress: retry some signal rlated tests in darwin test/regress_util: mark monotonic_prc as retriable test/regress_http: fix unix_socket test test/regress_http: disable max_connections/data_length_constraints under windows Add EV_WINDOWS macro
Azat Khuzhin 90846c30 2021-09-19T13:18:40 test: add --retries-delay (and set to 1 second by default) In attemp to address failures of dns/tcp_* tests under windows [1]. [1]: https://github.com/azat/libevent/runs/3644218468?check_suite_focus=true
Azat Khuzhin d7d6af75 2021-09-19T13:15:02 test: add --retries argument
Azat Khuzhin 7179cedd 2021-09-19T13:36:15 Add -Wno-void-pointer-to-enum-cast (we use this hack in tests) Refs: https://reviews.llvm.org/D75758
Azat Khuzhin 29492364 2021-09-19T12:56:24 test/regress_http: mark data_length_constraints as retriable CI: https://github.com/libevent/libevent/runs/3643914024?check_suite_focus=true
Azat Khuzhin 12e6d6eb 2021-09-19T12:33:44 github/workflows/mingw: use ctest --output-on-failure Otherwise it is hard to understand the problem [1]. [1]: https://github.com/azat/libevent/runs/3643912284
Azat Khuzhin 7855900c 2021-09-19T12:24:50 test/dns: mark TCP tests as retriable CI: https://github.com/azat/libevent/runs/3643912296 # tcp_resolve_many_clients CI: https://github.com/azat/libevent/runs/3643912192 # tcp_timeout CI: https://github.com/azat/libevent/runs/3643912336 # tcp_resolve CI: https://github.com/azat/libevent/runs/3643912174 # tcp_resolve_pipeline
Azat Khuzhin 6ad6afb6 2021-09-19T12:23:48 test/regress: retry some signal rlated tests in darwin CI: https://github.com/azat/libevent/runs/3643912290 # simplestsignal CI: https://github.com/azat/libevent/runs/3643912296 # simplesignal CI: https://github.com/azat/libevent/runs/3643912228 # multiplesignal
Azat Khuzhin 58606a62 2021-09-19T12:21:39 test/regress_util: mark monotonic_prc as retriable CI: https://github.com/azat/libevent/runs/3643966877
Azat Khuzhin de53da2e 2021-09-19T11:07:55 test/regress_http: fix unix_socket test
Azat Khuzhin 95eadf04 2021-09-19T10:54:27 test/regress_http: disable max_connections/data_length_constraints under windows CI: https://github.com/libevent/libevent/runs/3643554394
Azat Khuzhin a35d2d01 2021-09-19T10:54:08 Add EV_WINDOWS macro
Azat Khuzhin 39dcd52b 2021-08-10T22:04:43 ci: split build and test into separate jobs
Azat Khuzhin f1e9e4da 2021-09-19T01:47:42 test: cleanup stalled socket after running http/unix_sock Otherwise it breaks upload-artifacts: Run actions/upload-artifact@v1 Uploading artifact 'ubuntu-18.04-cmake-NONE-build' from '/home/runner/work/libevent/libevent/build' for run #346 Uploading 1095 files File error 'No such device or address' when uploading file '/home/runner/work/libevent/libevent/build/foo'. ... Error: No such device or address Error: Exit code 1 returned from process: file name '/home/runner/runners/2.282.1/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.
Azat Khuzhin f89e8612 2021-09-19T01:23:07 test: check return value of write()/send() in bufferevent_read_failed This will also suppress: ../test/regress_bufferevent.c: In function ‘test_bufferevent_read_failed’: 1102 ../test/regress_bufferevent.c:1395:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 1103 write(data->pair[0], buf, strlen(buf));
Azat Khuzhin 04fcd7c6 2021-09-19T00:57:31 test: mark util/monotonic_prc_fallback as retriable Refs: #1193
Azat Khuzhin 41b5ab0f 2021-09-19T00:39:30 bufferevent_ssl: check return value of the evbuffer_drain() Refs: #1163
Azat Khuzhin b926af26 2021-09-19T00:27:53 Merge remote-tracking branch 'upstream/pr/1203' @ploxiln: "It seems like a bit of refactoring might be able to clean this code up a bit, but it's a bit tricky because of the varied tricky usage of chain structs, so this initial version has minimal changes ... " * upstream/pr/1203: buffer: do not round up allocation for reference-type chain objects
Azat Khuzhin 74af13d5 2021-09-19T00:23:10 Merge !1204 -- tests: fix macOS CI runs * upstream/pr/1204: test: http_unix_socket_test: fix url could be freed uninitialized test: regress_http: skip unix socket parsing tests in windows test: fix regress_http evhttp_bind_unixsocket() on macOS ci: fix macOS mbedtls version/search
Pierce Lopez 5303feff 2021-09-17T04:47:34 test: http_unix_socket_test: fix url could be freed uninitialized > regress_http.c:2279:2: warning: variable 'uri' is used uninitialized > whenever 'if' condition is true
Pierce Lopez 4f73bf3a 2021-09-17T01:56:56 test: regress_http: skip unix socket parsing tests in windows windows doesn't do unix sockets
Pierce Lopez 58d4e50d 2021-09-17T01:39:46 test: fix regress_http evhttp_bind_unixsocket() on macOS needs to use evutil socket helper for SOCK_NONBLOCK / SOCK_CLOEXEC
Pierce Lopez bceab045 2021-09-17T01:37:19 ci: fix macOS mbedtls version/search mbedtls just updated to version 3.0, install mbedtls@2 variant, which needs more help being located since it's no longer the default and no longer linked into the typical /usr/local dirs also gitignore mbedtls sample program binaries
Pierce Lopez fd0ce993 2021-09-16T23:21:26 buffer: do not round up allocation for reference-type chain objects Skip rounding up memory allocations for: * evbuffer_add_reference() * evbuffer_add_buffer_reference() * evbuffer_add_file_segment() These chain objects only store small structs with references to other things, and these small structs do not themselves grow, so bumping up the allocation to MIN_BUFFER_SIZE (512 bytes) is wasteful.
Pierce Lopez fabbf3b3 2021-09-14T01:19:36 test: skip dns_initialize_nameservers if missing /etc/resolv.conf some build systems run tests in minimal containers with no resolv.conf, and the primary thing this test does is load the default /etc/resolv.conf
Yong Wu 68675d5f 2021-09-12T18:03:03 doc: adjust flags notice on event_base_loop()
Yong Wu 990bcfc2 2021-09-06T08:06:10 ev_io_timeout consistency
Yong Wu 74594077 2021-09-05T22:42:04 modify typo - timeeouts
Azat Khuzhin 2b92b830 2021-08-12T01:40:27 http: fix building under windows (guard with _WIN32 for unixsocket free) Reported-by: @kaend
Azat Khuzhin 86292628 2021-08-10T23:14:01 test: fix checking test args for http_parse_uri_test
Sean Young f446229b 2016-01-31T11:31:00 http: support unix domain sockets There are no standard for encoding a unix socket in an url. nginx uses: http://unix:/path/to/unix/socket:/httppath The second colon is needed to delimit where the unix path ends and where the rest of the url continues. Signed-off-by: Sean Young <sean@mess.org>
Azat Khuzhin 6f139b87 2021-08-01T11:53:17 buffer: fix CreateFileMapping() leak from evbuffer_add_file() evbuffer_file_segment_materialize() is called twice from evbuffer_add_file(), and so win32 mapping will leak. Fixes: #1186
moonlightsh c29f1dbe 2021-07-16T10:21:06 fix evthread_use_pthreads_with_flags dead lock when first return
fanquake c5642697 2021-07-13T15:08:44 build: fail with a useful error message if pkg-config isn't available
Tobias Heider 5c0e75c3 2021-07-06T17:40:58 Properly initialize sockaddr length on systems with sin_len.
Azat Khuzhin 6d800fd6 2021-07-10T00:12:21 Merge remote-tracking branch 'upstream/pr/1171' * upstream/pr/1171: ci: install pkg-config in mingw-w64 CI build: test ac_cv_header_sys_time_h once, reformat timer* macro checks build: remove call to AC_C_CONST() build: replace ntp_pkg_config macro with a call to PKG_PROG_PKG_CONFIG() build: remove NTP_PKG_CONFIG call from libevent_mbedtls.m4 build: stop using the deprecated form of AC_OUTPUT() build: quote args in AC_ARG_ENABLE & AS_HELP_STRING build: remove call to AC_HEADER_TIME build: call AC_PREREQ() first & quote argument build: remove call to AC_PREFIX_DEFAULT build: remove call to AC_PROG_GCC_TRADITIONAL
fanquake 196a36af 2021-07-09T12:34:37 ci: install pkg-config in mingw-w64 CI
fanquake 7ab3a06a 2021-06-16T15:29:30 build: test ac_cv_header_sys_time_h once, reformat timer* macro checks
fanquake 041d6f09 2021-06-15T16:00:48 build: remove call to AC_C_CONST() > This macro is obsolescent, as current C compilers support const. > New programs need not use this macro. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#index-AC_005fC_005fCONST-877.
fanquake 12996ba9 2021-06-15T15:49:38 build: replace ntp_pkg_config macro with a call to PKG_PROG_PKG_CONFIG() Note that 0.15.0 is quite an old version to be testing for, however I've left this as-is for now.
fanquake 4ed37096 2021-06-15T15:37:30 build: remove NTP_PKG_CONFIG call from libevent_mbedtls.m4 I'm guessing this was just copied from libevent_openssl.m4, however there aren't actually any pkg-config calls / macros used here.
fanquake 7708f6ce 2021-06-15T15:22:20 build: stop using the deprecated form of AC_OUTPUT() > The use of AC_OUTPUT with arguments is deprecated. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#AC_005fOUTPUT.
fanquake 5f11857f 2021-06-15T14:34:46 build: quote args in AC_ARG_ENABLE & AS_HELP_STRING Previously, some were, some weren't. Consolidate on quoting.
fanquake 67f808ec 2021-06-15T14:10:29 build: remove call to AC_HEADER_TIME Besides the fact that the *_TIME_WITH_SYS_TIME define doesn't seem to be used anywhere in the libevent source, this macro is also obselescent. > This macro is obsolescent, as current systems can include both files when they exist. > New programs need not use this macro. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#index-AC_005fHEADER_005fTIME-640.
fanquake eb59d84d 2021-06-15T13:41:05 build: call AC_PREREQ() first & quote argument > This macro may be used before AC_INIT. Calling this first means establishing that the required version of autoconf is actually available, before bothering with AC_INIT(). See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#Versioning.
fanquake dfae9557 2021-06-15T13:35:58 build: remove call to AC_PREFIX_DEFAULT > By default, configure sets the prefix for files it installs to /usr/local. A call to AC_PREFIX_DEFAULT, just to set the value the same as the default, would seem unnecessary. Note that the "initialize prefix" comment dates back to aa6567fe6475d3230c7c745a7ca208735af0c331, prior to when an autoconf macro was actually being used. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#Default-Prefix.
fanquake 710ccb7e 2021-06-15T13:31:44 build: remove call to AC_PROG_GCC_TRADITIONAL libevent requires Autoconf 2.67+, and from atleast this version onwards, if not earlier, this macro is obsolescent. > This macro is obsolescent, since current versions of the GNU > C compiler fix the header files automatically when installed. See: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.67/autoconf.html#AC_005fPROG_005fGCC_005fTRADITIONAL.
Azat Khuzhin 3d48c756 2021-06-27T18:37:20 Merge #1176 - make evthread_use_pthreads() a MT-Safe function * upstream/pr/1176: remove emty line for code formating make evthread_use_pthreads a MT-Safe function
moonlightsh bb669d93 2021-06-25T08:33:30 remove emty line for code formating
moonlightsh 608876d2 2021-06-25T08:27:27 make evthread_use_pthreads a MT-Safe function
Michael Davidsaver 73ca1801 2019-10-21T11:41:19 RTEMS has no SA_RESTART as RTEMS has no syscalls to restart.
Azat Khuzhin aba6548c 2021-03-23T09:50:03 Switch to lukka/run-vcpkg@v7 and update vcpkgGitCommitId Let's see if it uses set-env or not [1]: Run lukka/run-vcpkg@v2 Restore vcpkg and its artifacts from cache Set output env vars Error: Unable to process command '::set-env name=RUNVCPKG_VCPKG_ROOT::D:\a\libevent\vcpkg' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ [1]: https://github.com/libevent/libevent/runs/2172680596?check_suite_focus=true#step:4:24 And this one [2]: error: could not open file /var/cache/pacman/pkg/libzstd-1.5.0-1-x86_64.pkg.tar.zst: Child process exited with status 127 error: could not open file /var/cache/pacman/pkg/zstd-1.5.0-1-x86_64.pkg.tar.zst: Child process exited with status 127 error: could not open file /var/cache/pacman/pkg/pacman-5.2.2-23-x86_64.pkg.tar.zst: Child process exited with status 127 error: failed to commit transaction (cannot open package file) [2]: https://github.com/libevent/libevent/pull/1168/checks?check_run_id=2706159518#step:4:367
Alex Budovski 8f74b30c 2021-05-30T13:05:25 Replace gettimeofday with the portable wrapper Otherwise the Win32 build fails.
Azat Khuzhin c2b45248 2021-05-24T21:03:58 Fix -Warray-parameter for evutil_ersatz_socketpair_()
Azat Khuzhin 862b83f9 2021-05-24T21:03:58 dns-example: add CNAME support
Sergey Matveychuk 19b3fd0b 2021-04-07T20:39:18 evdns: add ability to get CNAME Add new flag (DNS_CNAME_CALLBACK) for evdns_base_resolve_ipv4()/evdns_base_resolve_ipv6(). If set, you will get one more callback with type == DNS_CNAME and CNAME in addrs argument.
Paweł Wegner 087bbc57 2021-05-13T17:32:11 cmake: don't override CMAKE_CONFIGURATION_TYPES. Surprisingly this overrides configuration types for projects which embed libevent using cmake's add_subdirectory.
Biswapriyo Nath 1fe8b3d6 2021-05-05T01:26:17 cmake: Fix generted pkgconfig files. Use lowercase 'L' option for library names because uppercase 'L' is used with library search directory.
Azat Khuzhin f02fa339 2021-04-30T10:15:45 Support disabled renegotiation in mbedTLS Patch from: @Kurruk007 Fixes: #1161
Azat Khuzhin 72138063 2021-04-27T21:15:03 Do not wrap lines in AC_CHECK_HEADERS/AC_CHECK_FUNCS (fixes detection in mingw) Fixes: d433f847 ("Revert "build: use literals for AC_CHECK_HEADERS/AC_CHECK_FUNCS"") Fixes: 28f0fe6f ("build: use literals for AC_CHECK_HEADERS/AC_CHECK_FUNCS") Fixes: ce028cef ("build: fix autotools build under mingw")
Azat Khuzhin 86ae44ce 2021-04-27T09:03:42 Fix O_RDONLY (_O_RDONLY) under mingw O_RDONLY is defined only if [1]: !defined(NO_OLDNAMES) || defined(_POSIX) [1]: https://github.com/Alexpux/mingw-w64/blob/d0d7f784833bbb0b2d279310ddc6afb52fe47a46/mingw-w64-headers/crt/fcntl.h#L35
Mike Sharov 4f8a6144 2021-04-25T09:12:29 Retry write on EINTR in signal handler The signal handler writes the received signal number as a byte value into the notification pipe. If two signals are received in quick succession, one of the writes may fail with EINTR without writing the byte. This commit will check for EINTR and retry the write. If the error is other than EINTR, a warning will be logged. Note, that: - on systems with sigaction libevent uses sigaction with SA_RESTART - on linux writing to pipe is restartable and firstly it will try to write that byte so linux should not be affected in any form [1]. [1]: https://elixir.bootlin.com/linux/latest/source/fs/pipe.c#L545
Yi Fan Yu dff8fd27 2021-04-22T22:35:59 test/regress.h: Increase default timeval tolerance 50 ms -> 100 ms The default timeout tolerance is 50 ms, which causes intermittent failure in many the related tests in arm64 QEMU. See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14163 (The root cause seems to be a heavy load) Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Azat Khuzhin 8e03f495 2021-04-03T12:50:53 Merge #1152 -- remove no op evdns functions * upstream/pr/1152: dns: remove evdns_set_transaction_id_fn dns: remove evdns_set_random_bytes_fn
Emil Engler e77f1872 2021-04-02T21:02:12 sample: use unsigned short instead of int for port The C standard gurantees that an unsigned short is at least up to 65535 huge. Enough to store every TCP port. Also the parameter PORT is overgiven to the `htons()` function which assumes that the parameter is of type `uint16_t` which unsigned short is on most platforms.
fanquake 01beec2f 2021-04-03T12:55:32 dns: remove evdns_set_transaction_id_fn
fanquake 39d68053 2021-04-03T12:55:11 dns: remove evdns_set_random_bytes_fn
Emil Engler 0ef0d947 2021-04-02T20:59:55 doc: adjust edge-trigger notice on event_new() This makes it easier to read and to understand it in my opinon. It also fixes a missing "-" character.
Azat Khuzhin d433f847 2021-04-02T09:19:55 Revert "build: use literals for AC_CHECK_HEADERS/AC_CHECK_FUNCS" That commit was wrong, it breaks syntax for autoconf <2.71, since AC_CHECK_*S() requires sh-like list. This reverts commit 28f0fe6fd1e2b1e9fb24a5c7a5b078790890e44f. Fixes: #1149
Azat Khuzhin 28f0fe6f 2021-03-28T17:16:54 build: use literals for AC_CHECK_HEADERS/AC_CHECK_FUNCS autoconf 2.72 reports: configure.ac:188: warning: AC_CHECK_HEADERS(\ ): you should use literals ../autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from... configure.ac:188: the top level configure.ac:188: warning: AC_CHECK_HEADERS(afunix.h ): you should use literals And also it fails to find fcntl.h and other headers because of this: configure:14725: checking for fcntl.h configure:14725: gcc -c -I/mingw64/include conftest.c >&5 conftest.c:77:10: fatal error: fcntl.h: No such file or directory 77 | #include < fcntl.h> Refs: https://github.com/libevent/libevent/pull/1146/checks?check_run_id=2211752215
Azat Khuzhin ce028cef 2021-03-28T09:01:58 build: fix autotools build under mingw autotools that is shipped with mingw (autoconf 2.71-1, automake 1.6-1.16, automake wrapper 11-1), does not allow trailing backslashes for AC_CHECK_HEADERS() and AC_CHECK_FUNCS(), otherwise it generates incorrect for loop, and reports: ../configure: line 14724: syntax error near unexpected token `as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`' ../configure: line 14724: ` as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`' Error: Process completed with exit code 1. Here is a simple analog: for VAR in <CR> foo \ <CR> bar \ do : echo $VAR done Trailing slash is not allowed. Refs: - https://github.com/libevent/libevent/runs/2171607687 - https://github.com/libevent/libevent/runs/2211365885?check_suite_focus=true