-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async DNS resolution via udns, take 3 #134
Open
slingamn
wants to merge
22
commits into
rakshasa:master
Choose a base branch
from
slingamn:udns.10
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e489e71
asynchronous DNS resolution support via udns
slingamn c004a60
udns and non-udns travis builds
slingamn 48ffa56
give MockResolve a real constructor
slingamn 803907e
make udns an automatic/optional dependency by default
slingamn 1a8c250
review fixes
slingamn 719dd39
fix inconsistent indentation
slingamn ae09b21
fix incorrect ordering of cancel / callback execution / free in udnse…
slingamn 5ca51d3
review fixes
slingamn d20ec47
de-indent udnsevent.cc (namespaces are not indented)
slingamn 3e20053
review fixes
slingamn e2360fd
use std::unique_ptr to manage the mock resolve structs
slingamn 98ea519
rename a variable to avoid confusion
slingamn ca8afa3
Refactor interface to reduce #ifdefs
slingamn da3a4c9
Merge remote-tracking branch 'origin/master' into udns.137.fall2019
slingamn eacec4b
fix compilation errors
slingamn f84a09e
Merge remote-tracking branch 'origin/master' into udns.137.april2020
slingamn 058db13
fix compatibility with new makefile consolidation
slingamn e2a5d8b
Merge remote-tracking branch 'origin/master' into udns.137.may2022
slingamn b168631
Merge remote-tracking branch 'origin/master' into udns.137.june2023
slingamn 2510069
only resolve UDP trackers to their IPv4 addresses
slingamn a03859e
Merge branch 'udns.137.june2023' into udns.140
slingamn 3da9490
remove dead code
slingamn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ scripts/lt*.m4 | |
.#* | ||
\#*# | ||
*~ | ||
*.swp | ||
|
||
# Packages # | ||
############ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
dnl function for enabling/disabling udns support | ||
AC_DEFUN([TORRENT_WITH_UDNS], [ | ||
AC_ARG_WITH( | ||
[udns], | ||
AS_HELP_STRING([--without-udns], [Don't use udns, falling back to synchronous DNS resolution.]) | ||
) | ||
dnl neither ubuntu nor fedora ships a pkgconfig file for udns | ||
AS_IF( | ||
[test "x$with_udns" != "xno"], | ||
[AC_CHECK_HEADERS([udns.h], [have_udns=yes], [have_udns=no])], | ||
[have_udns=no] | ||
) | ||
AS_IF( | ||
[test "x$have_udns" = "xyes"], | ||
[ | ||
AC_DEFINE(USE_UDNS, 1, Define to build with udns support.) | ||
LIBS="$LIBS -ludns" | ||
], | ||
[ | ||
AS_IF( | ||
[test "x$with_udns" = "xyes"], | ||
[AC_MSG_ERROR([udns requested but not found])] | ||
) | ||
] | ||
) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit too much to include in this file, consider moving it to a source file in the same place as the udns stuff is.