Jim Hague
9e47919f42
Merge commit 'a9029581bc18870e8a1b84f77e546500bad7ec0e' into features/yaml
2017-09-13 15:46:47 +01:00
Jim Hague
57c40b147d
Fix capturing exit code of a test.
...
tpkg was not capturing the exit code of the test, but the exit code of the write_result actions.
2017-09-13 15:02:36 +01:00
Jim Hague
9683a64f73
Add test 255-yaml-config with basic test of getdns_yaml2dict.
2017-09-13 15:01:13 +01:00
Jim Hague
c74e8353a8
Move to clang-friendly way of marking unused function parameters as used.
2017-09-13 12:50:18 +01:00
Jim Hague
6c95f4177d
Add YAML configuration option.
...
Add new extra functions getdns_yaml2(dict|list|bindata|value)(). These are like their getdns_str2() counterparts, but take YAML input rather than JSON.
YAML introduces a new dependency, on libyaml. YAML can be disabled at configuration time, in which case the dependency is removed.
Modify getdns_query such that if a configuration file name includes ".yaml" it will be processed as a YAML configuration, not a JSON configuration.
Internally, getdns_yaml2*() work by passing the YAML string through a simple translation to JSON. At present, this translation assumes that configuration is the only use case, and so will error if the outer layer of the YAML input is not a map. This in effect means that at present all getdns_yaml2*() functions apart from getdns_yaml2dict() will give an error on the YAML translation to JSON.
2017-09-12 16:47:57 +01:00
Sara Dickinson
2e4e3873e4
First pass at fixing problems when connections to servers are lost.
...
Need to reset connection state if connections fail at setup and on read/write if there are no more messages queued.
This means we will back-off servers that fail, so we should think about using a shorter backoff default in stubby
because otherwise temporarily loss of the network connection will mean having to restart stubby.
Also some minor changes to logging.
2017-09-06 11:05:08 +01:00
Willem Toorop
d2c258158f
Flag for live logging
2017-09-04 10:04:17 +02:00
Willem Toorop
48209a038c
Fix things that came out of static analysis
2017-09-02 12:47:04 +02:00
Willem Toorop
084286513f
Fix permissions
2017-09-02 12:18:57 +02:00
Willem Toorop
f25ae85030
Get keys from correct position
2017-09-02 12:10:50 +02:00
Willem Toorop
d340305dcc
Show tpkg execution live
2017-09-02 11:38:20 +02:00
Willem Toorop
2b07f221c4
And actually copy over results
2017-09-02 11:22:01 +02:00
Willem Toorop
bf31b2f7db
Collect report from static analysis
2017-09-02 11:20:21 +02:00
Willem Toorop
21f538f60c
Forgot ;
2017-09-01 17:00:34 +02:00
Willem Toorop
bf23968226
Final for loop initializations elimination
2017-09-01 16:50:31 +02:00
Willem Toorop
70ec5ea4d0
Some more for loop initializations
2017-09-01 16:34:06 +02:00
Willem Toorop
5c8765fefe
No variable initializations in for loops
2017-09-01 16:23:26 +02:00
Willem Toorop
98379bbd38
Add RR type DOA
...
Without rdata yet, just to pass unit tests
2017-09-01 16:10:56 +02:00
Willem Toorop
fe6d2c9749
/* fallthrough */ must be first comment before case
2017-08-24 13:58:13 +02:00
Willem Toorop
5a94081634
Make switch/case fallthroughs explicit
...
+1 fallthrough bugfix in getdns_query
2017-08-24 13:51:58 +02:00
Sara Dickinson
a6669482d8
Merge pull request #329 from getdnsapi/devel/without-stubby
...
Devel/without stubby
2017-08-23 15:25:27 +01:00
Willem Toorop
f949f4a136
Sync with unbound
2017-08-22 12:42:52 +02:00
Willem Toorop
516570e1f8
Include stubby (building) in tpkg testing
2017-08-22 12:16:48 +02:00
Willem Toorop
6024f9d72e
Merge branch 'develop' into devel/without-stubby
2017-08-22 11:27:11 +02:00
Willem Toorop
e57011a3ea
Compile without stubby by default
...
And with stubby from repo (as submodule) when --with-stubby is specified
2017-08-22 11:25:47 +02:00
Sara Dickinson
33ff6a95ac
Fix issue on macOX 10.10 where TCP fast open is detected but not implemented causing TCP to fail. The fix allows fallback to regular TCP in this case and is also more robust for cases where connectx() fails for some reason.
2017-08-18 17:59:49 +01:00
wtoorop
f03ac9ab7b
Merge pull request #324 from saradickinson/docs/fix_set_from_os
...
Remove mention of using the second bit in set_from_os to init OpenSSL…
2017-08-18 15:56:13 +02:00
wtoorop
da7083f55a
Merge pull request #316 from wtoorop/devel/roadblocks_and_valchains
...
Devel/roadblocks and valchains
2017-08-18 15:55:56 +02:00
wtoorop
5701fb99c9
Merge pull request #321 from neilcook/stub_fixes
...
Stub fixes
2017-08-18 15:53:23 +02:00
wtoorop
ae0dd866aa
Merge pull request #313 from MelindaShore/develop
...
Modified Dockerfile to check out getdns master
2017-08-18 15:52:49 +02:00
Sara Dickinson
05016e3a3a
Remove mention of using the second bit in set_from_os to init OpenSSL as this no longer applies
2017-08-04 14:17:50 +01:00
Neil Cook
1555c432f5
Fix array bounds bug in upstream_select
2017-07-31 22:51:24 +01:00
Neil Cook
2d7d6581b4
Ensure netreq->fd is set to -1 after close()/closesocket()
...
If netreq->fd is not set to -1, then multiple functions close the
same socket. This causes major issues in multithread code where the
socket must not be closed multiple times as it may be owned by a
different thread.
2017-07-31 22:48:09 +01:00
Willem Toorop
e11dc92df1
Hopefully the last warning
2017-07-15 18:38:31 +02:00
Willem Toorop
84430e02cd
Actually working roadblocks and getting validation chains
2017-07-15 17:48:24 +02:00
Willem Toorop
bceb6c8c87
Resubmit netreqs when roadblocks need to be avoided
2017-07-15 11:14:35 +02:00
Willem Toorop
c5acb3769b
Exit with error when answers were bogus
2017-07-06 21:28:34 +02:00
Willem Toorop
d589adf120
Use -V option in transport tests
2017-07-06 12:19:14 +02:00
Willem Toorop
d402603f4a
Merge branch 'develop' of github.com:getdnsapi/getdns into develop
2017-07-06 12:13:30 +02:00
Willem Toorop
4478745955
No output from getdns_query to stdout except the result (unless -V is used)
...
Resolves issue #315
2017-07-06 12:08:09 +02:00
Sara Dickinson
28c41c3495
Move the SYNC/ASYNC response text to after the dict so the dict is the first thing output and can be parsed without stripping this text (request from user).
2017-07-06 12:03:35 +02:00
Melinda Shore
146638ab94
Modified Dockerfile to check out getdns master and to use unbound-anchor to install dnssec trust root
2017-06-28 22:11:30 -08:00
wtoorop
45884a2dd7
Merge pull request #310 from getdnsapi/features/getdns_context_set_logfunc
...
A configurable log function
2017-06-28 22:55:45 +02:00
Willem Toorop
91ccbcd7df
Typo?
2017-06-28 21:45:54 +02:00
wtoorop
280e72a0fe
Merge pull request #311 from MelindaShore/develop
...
Basic Dockerfile for stubby.
2017-06-28 21:28:31 +02:00
Willem Toorop
19479d4089
Merge branch 'develop' into features/getdns_context_set_logfunc
2017-06-28 21:22:55 +02:00
Willem Toorop
264135e799
Reintroduct timestamps and replace GETDNS_DAEMON: with STUBBY:
2017-06-28 21:09:40 +02:00
Willem Toorop
8235250fb6
Rename SYSTEM_DAEMON in LOG_UPSTREAM_STATS
2017-06-28 20:57:53 +02:00
Sara Dickinson
55acf6662c
Fix for outputting the address string in the DAEMON log
2017-06-28 17:58:38 +01:00
Willem Toorop
195f4c59c8
Fix for the constants declaration issue
2017-06-27 07:49:01 +02:00