-
-
Notifications
You must be signed in to change notification settings - Fork 649
[client] Feature/lazy connection #3379
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
Open
pappz
wants to merge
109
commits into
main
Choose a base branch
from
feature/lazy-connection
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.
+3,268
−1,476
Open
Changes from all commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
db278db
Initial concept
pappz c8b031e
Merge branch 'main' into feature/lazy-connection
pappz d6e1850
Fix logic
pappz 0457251
Add for engine
pappz 8542674
Create conn mgr
pappz 309e825
Add test for port allocator
pappz e2e1458
Remove watcher
pappz f898904
Handle env var
pappz e6e070b
Add log lines
pappz 884d10c
Add log lines
pappz 9188fca
Fix constructor of conn.go
pappz 6ad66fe
Fix slow netbird status -d issue
pappz a27227f
Fix ip indication for lazy peers in status
pappz fcca194
Fix close
pappz 4f668fd
Fix context cancellation
pappz aa3cd20
Fix blocking Close
pappz d0d37ba
Rename fake to listener
pappz 4a5edc1
Fix postponed remove endpoint config
pappz 4e33582
Fix deprecated event handling
pappz feb8355
Fix deadlock
pappz 4c39ba3
Fix close channel creation
pappz f8a4cfb
Fix TestEngine_UpdateNetworkMap
pappz b38ddd8
Fix TestEngine_UpdateNetworkMap
pappz 3ff3bbe
Replace os.setenv to t.setenv
pappz a89a6c0
Fix use mgr without start
pappz 04f18bf
Fix unit test
pappz 0f1f023
Disable lazy connection in multiple peers test
pappz a3e7604
Avoid panic in test
pappz f09d861
Fix udp address bind
pappz dddb4bc
Fix minimum port range
pappz ab7463d
Change retry limit
pappz bfe71a3
Merge branch 'main' into feature/lazy-connection
pappz 04f127f
Merge feature/lazy-connection-idle
pappz 3ead624
Merge branch 'main' into feature/lazy-connection
pappz fa24bee
Fix close methods
pappz 96c3418
Change timeout period
pappz 8d052e3
Remove peer dependency from lazy connection
pappz 171b2a9
Update guard logic and fix status handling
pappz 48cb292
Fix timeout threshold
pappz 3e1c5cb
Rename function
pappz 20de3b8
Read inactivity threshold from env
pappz bcbc3f3
Manage exclude list
pappz a3b31d4
Merge branch 'main' into feature/lazy-connection
pappz dbb784c
Put back context cancel check
pappz 475dd8f
Change env var
pappz 8b869c8
Fix exclude list handling in case of disabled lazy mgr
pappz 3d5904c
Fix issue after merge
pappz 160201b
Fix ctx handling
pappz 8925f68
Fix engine tests
pappz 8ed5670
Remove unused variable
pappz 0565529
Fix unnecessary assignment to the blank identifier
pappz 1a183f8
Fix error handling
pappz c7fdb7f
Fix status test
pappz dad77ab
Trigger test
pappz 55dbd87
Start conn mgr in engine tests
pappz da27c32
Extend moc iface with updatePeerFunc
pappz 2693d55
Fix sonar issue
pappz c0ea2f4
Add doc
pappz 2a225b0
Add thread protection
pappz 24cdc09
Fix ebpf
pappz 294e77a
Merge branch 'main' into feature/lazy-connection
pappz 9819f84
Fix import
pappz 5b96fd6
Move en handling to upper layer
pappz 3a3a7f2
Use connID instead of peerid
pappz 1b01637
Fix lint
pappz 20371f1
Fix lint
pappz 7b5d370
Remove unused function
pappz 49037c3
Use peer conn id inside sub packages
pappz 4241d06
Add test
pappz 34e448d
Change env var names
pappz 3081c01
Merge branch 'main' into feature/lazy-connection
pappz fba3233
Source code fmt
pappz 5ae8749
Fix connection indication
pappz 08417c3
Fix test
pappz 9415cbd
Lint fix
pappz e3c3cd8
Add command line parameter to enable-disable lazy connection
pappz f57293f
Fix test
pappz ab2db8e
Fix status output test
pappz 062267f
Wire-up the env and cmd line variables
pappz 103e267
Fix RunHealthProbes
pappz 5ec57c5
Fix turn probes
pappz 8dfb02e
Add lazy connection to UI
pappz a089690
Add experimental keyword to the UI and cmd line
pappz be731c8
Sonar fix
pappz 65f1f87
Fix ICE worker state check
pappz 0152bff
Explicit reset the conn state in Close()
pappz 7fd031f
Merge branch 'main' into feature/lazy-connection
pappz b63e86b
Fix idle status filter
pappz 0723d28
Fix deadlock
pappz 70f55af
[client] Feature/lazy connection backward (#3718)
pappz fed83c8
Merge branch 'main' into feature/lazy-connection
pappz 40a921e
[client] Automatically start the connection if exclude list is changi…
pappz c5f2b3d
Merge branch 'main' into feature/lazy-connection
pappz e2ccccd
Merge branch 'main' into feature/lazy-connection
pappz e503148
Fix nil pointer exception if the engine is not started yet and call s…
pappz 7eb8e3b
Fix exclude list handling (#3797)
pappz 8e64c9e
Feature/lazy connection status filter fix (#3795)
pappz 895d589
Feature/lazy connection fix inactivity (#3801)
pappz 63e3a17
[client] Feature/lazy manageable feature by mgm server (#3818)
pappz f6ac268
Fix command line description text
pappz 0e7d6c3
Reduce the buffer size
pappz 176b824
Remove port allocator
pappz 71d683d
Change log message
pappz cf36afe
Convert bool to atomic bool
pappz e6b4db8
Add err context
pappz 98fc917
Merge branch 'main' into feature/lazy-connection
pappz 6469fcc
Update minimum version
pappz 6fbe25f
Fix support test
pappz e021f77
Update minimum version
pappz 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
The
toLastHandshake
helper parses both seconds and nanoseconds from the same input string, resulting in incorrect timestamps. It should accept and parse two distinct values (sec and nsec) or refactor to use separate inputs.Copilot uses AI. Check for mistakes.