-
Notifications
You must be signed in to change notification settings - Fork 45
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
WIP: Draft PR for improving connectivity testing to capture resolved IPs and all attempts #228
Draft
amircybersec
wants to merge
27
commits into
main
Choose a base branch
from
amir-conn-test
base: main
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.
Draft
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1920ee0
Collect connection address
fortuna a50d0eb
Try intercepting the transport dialer
fortuna f98ba8b
Pass wrapper instead
fortuna c5ab95c
Clean up
fortuna f88036d
Comment
fortuna 3d750e1
Collect connections
fortuna a1732d2
Fix
fortuna 053da66
Timeout
fortuna e6f31d0
To fix
fortuna cad18a9
loop over intercept dialer
amircybersec c3df0ed
code cleanup
amircybersec 4fdf296
changed connectivity result format
amircybersec 01a1c7e
updated json report format
amircybersec 91dae61
making tcp tests run concurrently
amircybersec 7b47394
close clean up / remove mutex
amircybersec fb791b1
add ip type tag to address json
amircybersec 1fe55fa
polish comments and code
amircybersec bb1090e
make udp tests concurrent
amircybersec e4e4915
cancel pending read/writes
amircybersec cb83523
do not capture conn closed err
amircybersec bdbbc5e
improvement to concurrency
amircybersec 08e4381
bug fix and code clean up
amircybersec 60eed45
migrating to new config design
amircybersec c7832de
removed commented code
amircybersec dfd82c9
reverse wrappErrors in dns
amircybersec b8134d8
fix wrap issue
amircybersec 7318a7e
change time to start_time
amircybersec 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
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.
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.
@fortuna I have to add this here to close the connection for pending receives (in case of timeouts) when another attempt succeeds. I managed to do this with the following change. I am basically cancelling the passed context in
connectivity.go
and checking if context is done. This is the best I came up with but I am not sure if there's a more elegant way to accomplish this.