* 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
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"'.
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));
@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
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
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.
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>
* 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
> 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.