This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 288
Add resolved udp connection type, continually resolve dns names in background #520
Merged
Merged
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7f1085d
Add resolved udp connection type, continually resolve dns names in
terev 3690bcb
Be sure to set buffer bytes width on new connections.
terev e7e7b32
Lock when checking if resolved addr is new.
terev 7994cdf
Fixes from review comments. Dont return error if UDPConn fails on sta…
terev 66b7ec4
Fix failing test. Apparently the linux kernel returns the sockopt val
terev fc0d3eb
Use atomic ops to manage bufferBytes instead of locking mutex
terev c47cc4b
Fix buffer bytes assert because sock opt value is not guaranteed to b…
terev aaf0c9b
Remove intermediate init helpers, initialize close chann in struct
terev 0264dd8
Fixes based on comments, more tests for udp_client.go, and test for
terev 8ea3b31
Run make fmt
terev d4f29aa
Remove unused struct field
terev fd62566
Fix lint error
terev d70dc93
Add test for new conn established when host record changes
terev 4161d17
Fix comment typo
terev 0d18d0d
Add test for failed write retry
terev 044e26a
Add test calling NewAgentClientUDP
terev 9c36339
Remove sleep on last try evaluating connection condition
terev 70bff5e
Rename resolved udp conn to reconnecting udp conn, add opt-out option
terev 3aedb36
Remove irrelevant comment, fix transport max packet size regression
terev f9de33b
Add panic in case the test server listen or srv fails unexpectedly
terev 19fb557
Add coverage for new env vars
terev 3003b3c
Run make fmt
terev 3e254f0
Add back constants, add helper for generating a mock udp addr, require
terev 2e4ea48
Remove local agent constants from utils
terev da03468
Move no error requirement into mock udp addr constructor
terev 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 would be a breaking change. I would rather add another function like below and delegate to it from this one:
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.
Similarly for NewAgentClientUDP
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.
Made this change. I'm defaulting to log.StdLogger if no logger is passed (as is the case in NewUDPTransport and NewAgentClientUDP)