1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-05 06:29:24 +00:00

1697 Commits

Author SHA1 Message Date
cc6b8641c2 Updated documentation 2017-04-12 01:32:45 +02:00
2811e30d49 Release 1.12.0 1.12.0-amiga 2017-04-12 01:21:06 +02:00
55e2af978d Update README.md 2016-03-28 16:00:08 +02:00
742f56907a AmigaOS changes 1.11.0-amiga 2016-03-05 09:59:40 +01:00
0b7a497ab7 Makefile.m32: add support for CROSSPREFIX 2016-03-03 14:18:48 +00:00
ebe7b81453 Makefile.m32: add support for extra flags
Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars
for mingw
2016-03-03 14:18:09 +00:00
3b1ff9da74 test: Build with MinGW on AppVeyor 2016-03-03 13:57:45 +00:00
23b9ad9ede test: avoid in6addr_* constants
These aren't available on MinGW, so use explicit addresses instead.
2016-03-03 13:57:16 +00:00
6917640336 test: add missing #includes for dns-proto.cc 2016-03-03 13:57:16 +00:00
bf45d4c7c1 Fix man page typos detected by Lintian 2016-02-21 15:44:50 +00:00
10a1b7d509 configure: acknowledge --disable-tests
Fixes #44
2016-02-19 11:51:32 +01:00
fab050fe94 AUTHORS: added contributors from the 1.11.0 release 2016-02-19 10:22:04 +01:00
3e897ff27e bump: start working on the next version 2016-02-19 10:18:29 +01:00
e7fe2744db RELEASE-NOTES: final edits for 1.11.0 cares-1_11_0 2016-02-19 10:07:50 +01:00
e41a39b022 ares_dup.3: remove mention of nonexistent function
ares_dup_options() doesn't exist, so don't document it.
2016-02-15 09:22:00 +00:00
6549138e8b test: skip repeated build steps
Top-level buildconf/configure now triggers for the
test/ subdir too, so don't need to do explicitly.
2016-02-13 11:51:19 +00:00
f61151a091 test: namespaces unavailable when cross-compiling 2016-02-13 11:51:19 +00:00
63909b59a0 configure: only run configure in test when NOT cross-compiling
... as the tests won't run cross-compiled anyway
2016-02-13 11:40:00 +01:00
5b46450af4 test: prefer ON_CALL to EXPECT_CALL to reduce flakes
For UDP tests, there's a chance of a retry.  EXPECT_CALL only
expects a single request to arrive at the server; ON_CALL allows
for a UDP retry and repeats the same answer.

Note that ON_CALL and EXPECT_CALL can't be mixed in the same
test, and that tests that have a varied sequence of responses
for the same repeated request still have to use EXPECT_CALL.
2016-02-13 10:07:19 +00:00
f4fe7371fb configure: run configure in 'test' too
Having the test dir completely stand-alone causes too many issues for
users and devs. It still needs to be built specifically.
2016-02-13 10:58:51 +01:00
18eeb34989 configure: build silently by default 2016-02-13 10:57:38 +01:00
85c865e655 buildconf: run test/buildconf too if present 2016-02-13 10:56:55 +01:00
f0d04b2909 test/configure: build silently by default 2016-02-13 10:56:28 +01:00
8d023b7d96 dist: Distribute README.md
Closes #42
2016-02-13 10:35:31 +01:00
4ef6817c76 Makefile.am: distribute the test dir too cares-1_11_0-rc1 2016-02-11 15:09:13 +01:00
80bda0e9a0 RELEASE-NOTES: synced with 385582bd14 2016-02-11 14:49:48 +01:00
385582bd14 ares_win32_init: make LoadLibrary work when using UNICODE too
Closes #17
2016-02-11 12:24:22 +01:00
7e17c22b0f Use "resolve" as synonym of "dns" in nsswitch.conf
Modern Linux systems may have libnss_resolve from systemd as the
resolver, which is then configured in /etc/nsswitch.conf with
the "resolve" keyword rather than "dns".

Fixes #33
2016-02-11 11:14:40 +00:00
ed7df969cd ares_set_socket_callback: make manpage match code
The code in ares_process.c that invokes the socket creation/connection
callback only checks for rc < 0, not for standard ares error codes.
2016-02-11 11:14:27 +00:00
d8a0182af5 Merge pull request #36 from AGWA-forks/master
Add ares_set_socket_configure_callback()
2016-02-11 09:53:23 +00:00
56cd98b9e4 test: Update init tests to match behaviour
Unreadable config files are now treated the same way
as absent config files.
2016-02-11 09:29:31 +00:00
e514088f96 Ignore fopen errors to use default values
After 46bb820be3 `init_by_resolv_conf`
errors are no longer swallowed in `ares_init_options`. This has exposed
a previously unknown bug in `lookups` initialization code.

If there is no lookup configuration in `resolv.conf`,
`init_by_resolv_conf` will attempt to read it from other files available
on the system. However, some of these files may have restricted
permissions (like `600`), which will lead to `EACCESS` errno, which in
turn is handled like a fatal error by `init_by_resolv_conf`.

However, it sounds illogical that this error should be handled as a
fatal. There is a `init_by_defaults` call that overrides `lookups` with
default value, and certainly possible absence of lookup information is
the reason why this function exists in a first place!

I suggest handling any `fopen` errors as non-fatal ones, allowing to
pick up the `lookups` value from different config files, or to pick up
default value.
2016-02-11 08:38:02 +00:00
2b6a1fbee7 Document callback type in man page for ares_set_socket_callback 2016-02-09 10:08:23 -08:00
11e37a92ef Add ares_set_socket_configure_callback()
This function sets a callback that is invoked after the socket is
created, but before the connection is established.  This is an ideal
time to customize various socket options.
2016-02-09 10:05:04 -08:00
87d641a907 test: ares_set_socket_callback failure behaviour 2016-02-09 16:14:37 +00:00
2bae2d56d7 test: Check ares_parse_txt_reply_ext() entrypoint 2016-02-04 10:09:22 +00:00
53c2186e18 txt: introduce ares_parse_txt_reply_ext
Introduce `ares_txt_ext` structure with an extra `record_start`
field, which indicates a start of a new TXT record, thus allowing to
differentiate the chunks in the same record, from a chunks in a
different record.

Introduce a new API method: `ares_parse_txt_reply_ext` that works with
this kind of struct.
2016-02-04 10:00:59 +00:00
0c4c1ca9bc doc: Update missed repo references 2016-02-02 11:33:16 +00:00
adc95e6bd6 doc: Update docs on contributing 2016-02-02 11:31:13 +00:00
03ba16fe7a test: Run command line tools in Travis
Do a quick execution of each of the command line tools
in the continuous integration build, so that any (say)
sanitizer failures show up.
2016-02-02 11:02:28 +00:00
3f301a6fe3 acountry: drop inert test
If ver_1 is true, then z0 and z1 must both be 'z', and so
(z0 != 'z' && z1 != 'z') can never be true.

CID 56879, pointed out by Coverity.
2016-02-02 10:56:54 +00:00
d4a549c78b doc: update badge locations to master repo 2016-02-02 10:48:15 +00:00
6f1862f884 test: Enable maintainer mode + debug in Travis 2016-02-02 10:33:27 +00:00
31ca57671e test: Add an iOS build target 2016-02-02 10:13:49 +00:00
c9579872c8 test: Ignore SIGPIPE in tests 2016-02-02 10:13:49 +00:00
86beb81892 test: More initialization tests 2016-02-02 10:13:49 +00:00
ff1f7a1c3c test: Improve containerized test mechanism
Aim is to ensure that code coverage information can escape the
container.  To do this:
 - Enter a new mount namespace too, so that we can...
 - Bind mount the expected source directory into the container
 - Share memory with the sub-process so coverage information is
   shared too.
2016-02-02 10:13:49 +00:00
b644412a66 test: Make contained tests easier to write 2016-02-02 10:13:49 +00:00
5dc450a4b3 test: Add framework for containerized testing
On Linux we can potentially use user and UTS namespaces to run  a test
in a pseudo-container with:
 - arbitrary filesystem (e.g. /etc/resolv.conf, /etc/nsswitch.conf, /etc/hosts)
 - arbitrary hostname/domainname.

Include a first pass at the framework code to allow this, along with a
first test case that uses the container.
2016-02-02 10:13:49 +00:00
439eb45cc0 test: Use a longer timeout for less flakiness
Having occasional test failures from timeout before multiple
queries can complete, so up the default timeout for the test
from 100ms to 1500ms.
2016-02-02 10:13:49 +00:00