Commit Graph

16 Commits

Author SHA1 Message Date
Cuong Manh Le
ebcc545547 all: improving DoH query performance
Previously, for each DoH query, we use the net/http default transport
with DialContext function re-assigned. This has some problems:

 - The first query to server will be slow.
 - Using the default transport for all upstreams can have race condition
   in case of multiple queries to multiple DoH upstreams

This commit fixes those issues, by initializing a separate transport for
each DoH upstream, the warming up the transport by doing a test query.
Later queries can take the advantage and re-use the connection.
2023-01-20 21:32:14 +07:00
Yegor S
924304a13d Merge pull request #6 from Control-D-Inc/bump-version
cmd/ctrld: bump version to v1.0.1
v1.0.1
2022-12-14 13:05:05 -05:00
Cuong Manh Le
0240f7ab15 cmd/ctrld: bump version to v1.0.1 2022-12-15 00:57:16 +07:00
Yegor S
64dff35143 Merge pull request #5 from Control-D-Inc/cuonglm/upstream-failover-rcode
all: implement policy failover rcodes
2022-12-14 12:53:26 -05:00
Cuong Manh Le
d2c47ba523 docs: add documentation for failover rcode 2022-12-15 00:00:05 +07:00
Cuong Manh Le
ccada70e31 all: implement policy failover rcodes
While at it, ensure that config is validated, and fixing a bug related
to reuse ctx between multiple upstreams resolving.
2022-12-14 23:34:24 +07:00
Yegor S
fe0faac8c4 Merge pull request #4 from Control-D-Inc/cuonglm/update-example
Update arguments section to reflect latest changes
2022-12-13 12:37:43 -05:00
Cuong Manh Le
bb51a40166 Update arguments section to reflect latest changes 2022-12-14 00:33:07 +07:00
Yegor S
d42ee31a7c Merge pull request #3 from Control-D-Inc/cuonglm/fix-readme
Update README.md
2022-12-13 12:29:57 -05:00
Cuong Manh Le
0556825a11 Update README.md 2022-12-14 00:24:43 +07:00
Yegor S
b2a6f18a1c Create LICENSE 2022-12-13 12:04:01 -05:00
Cuong Manh Le
3968a67d80 Merge pull request #2 from Control-D-Inc/goreleaser
Add goreleaser file
v1.0.0
2022-12-13 11:35:35 +07:00
Cuong Manh Le
0c3ee9aa59 Add goreleaser file 2022-12-13 11:04:27 +07:00
Yegor S
4d75333b9c Merge pull request #1 from Control-D-Inc/mirroring-code
Let there be light.
2022-12-12 20:58:05 -05:00
Cuong Manh Le
91d60d2a64 Import code, preparing for release 2022-12-13 01:27:48 +07:00
Yegor S
cef3cc497e Initial commit 2022-12-02 20:05:07 -05:00