-
Notifications
You must be signed in to change notification settings - Fork 10
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: manager: Improve address handling and refactor PeerState #248
Commits on Sep 17, 2024
-
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 22d6b48 - Browse repository at this point
Copy the full SHA 22d6b48View commit details
Commits on Sep 18, 2024
-
manager/address: Store addresses using a HashMap
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 86e017f - Browse repository at this point
Copy the full SHA 86e017fView commit details -
manager: Keep dial addresses around even if the peer is connected
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ec9e54 - Browse repository at this point
Copy the full SHA 8ec9e54View commit details -
manager: Update dial failure address scores
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 83b9361 - Browse repository at this point
Copy the full SHA 83b9361View commit details -
manager: Clean up the disconnected dial record on failure
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b28a234 - Browse repository at this point
Copy the full SHA b28a234View commit details
Commits on Sep 19, 2024
-
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 68e3328 - Browse repository at this point
Copy the full SHA 68e3328View commit details -
manager: Make add_known_address more robust to track multiple peer addrs
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4ad526f - Browse repository at this point
Copy the full SHA 4ad526fView commit details -
manager: Construct the store with dialing address present
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a924fa2 - Browse repository at this point
Copy the full SHA a924fa2View commit details -
manager: Track dial failure addresses regardless of peer states
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 445ca74 - Browse repository at this point
Copy the full SHA 445ca74View commit details -
manager: Update addresses only in dedicated function
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7220f7a - Browse repository at this point
Copy the full SHA 7220f7aView commit details -
manager: Remove unneeded methods
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f56e8c0 - Browse repository at this point
Copy the full SHA f56e8c0View commit details -
manager: Keep track of the latest connection ID
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a0fb0c9 - Browse repository at this point
Copy the full SHA a0fb0c9View commit details -
manager: Better constants for scoring
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40e149b - Browse repository at this point
Copy the full SHA 40e149bView commit details -
manager: Update addresses on connection established
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7e15747 - Browse repository at this point
Copy the full SHA 7e15747View commit details -
manager: Replace AddressRecord with DialRecord
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9ce8a20 - Browse repository at this point
Copy the full SHA 9ce8a20View commit details -
manager: Remove AddressRecord from the Opening state
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 47f97b5 - Browse repository at this point
Copy the full SHA 47f97b5View commit details -
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7f3147d - Browse repository at this point
Copy the full SHA 7f3147dView commit details -
manager: Rename DialRecord to ConnectionRecord
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6e2d4d - Browse repository at this point
Copy the full SHA d6e2d4dView commit details -
manager/address: Remove connection ID from address store
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1eda8a7 - Browse repository at this point
Copy the full SHA 1eda8a7View commit details -
manager/types: Add wrappers for consturcting connection records
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 526244b - Browse repository at this point
Copy the full SHA 526244bView commit details -
manager/address: Implement eviction algorithm
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dcac138 - Browse repository at this point
Copy the full SHA dcac138View commit details -
manager: Rename recrod to address record
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fc35762 - Browse repository at this point
Copy the full SHA fc35762View commit details -
manager/handle: Keep WriteLock for a shorter time
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 250c289 - Browse repository at this point
Copy the full SHA 250c289View commit details -
manager/peer_state: Implement on_dial state advancing
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6da7acf - Browse repository at this point
Copy the full SHA 6da7acfView commit details -
manager: Type safe state transition and trransports more modular
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b26dbd1 - Browse repository at this point
Copy the full SHA b26dbd1View commit details -
manager/peer_state: Implement on_dial_failure state advancing
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 90e5b45 - Browse repository at this point
Copy the full SHA 90e5b45View commit details
Commits on Sep 20, 2024
-
manager/peer_state: Merge secondary connection with PeerState
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5cd7949 - Browse repository at this point
Copy the full SHA 5cd7949View commit details -
manager/peer_state: Handle connection closed transition
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3804db4 - Browse repository at this point
Copy the full SHA 3804db4View commit details -
manager/peer_state: Adjust connection established return
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6912dda - Browse repository at this point
Copy the full SHA 6912ddaView commit details -
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 900ff49 - Browse repository at this point
Copy the full SHA 900ff49View commit details -
manager/tests: Adjust tests to compile
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e206588 - Browse repository at this point
Copy the full SHA e206588View commit details -
manager: Remove secondary connection from PeerContext
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6dec2c - Browse repository at this point
Copy the full SHA d6dec2cView commit details -
manager/addresses: Configure address capacity from tests
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 28aa178 - Browse repository at this point
Copy the full SHA 28aa178View commit details -
manager/address: Move scores to the address from manager
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4249410 - Browse repository at this point
Copy the full SHA 4249410View commit details -
manager/address: Evict entries with score below threshold
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 42adc4a - Browse repository at this point
Copy the full SHA 42adc4aView commit details -
manager/addresses/tests: Evict on capacity
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 91d1e90 - Browse repository at this point
Copy the full SHA 91d1e90View commit details -
manager/tests: Test no longer panics on invalid peerIDs
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8248ba7 - Browse repository at this point
Copy the full SHA 8248ba7View commit details -
manager/tests: Persist dial addresses even if dial is not initiatied
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a698a00 - Browse repository at this point
Copy the full SHA a698a00View commit details -
manager/tests: Check dial attempt populated address
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a273531 - Browse repository at this point
Copy the full SHA a273531View commit details -
manager/tests: Check track of addresses
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 354f40a - Browse repository at this point
Copy the full SHA 354f40aView commit details -
manager: Keep connection record on secondary upgrades
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1eea678 - Browse repository at this point
Copy the full SHA 1eea678View commit details -
manager: Handle dial initiation result friendlier
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b684142 - Browse repository at this point
Copy the full SHA b684142View commit details -
manager: Simplify dial on single and multiaddresses
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 461eb65 - Browse repository at this point
Copy the full SHA 461eb65View commit details -
manager/handle: Use state transitions
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a1dfe2e - Browse repository at this point
Copy the full SHA a1dfe2eView commit details -
manager/peer_state: Add documentation
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d455d0 - Browse repository at this point
Copy the full SHA 6d455d0View commit details -
manager: Document possible race
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 808793c - Browse repository at this point
Copy the full SHA 808793cView commit details -
manager/peer_state: Ensure disconnects are reported properly
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dc6073d - Browse repository at this point
Copy the full SHA dc6073dView commit details -
transport/tests: Connections are reported properly now
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c36972 - Browse repository at this point
Copy the full SHA 0c36972View commit details
Commits on Sep 23, 2024
-
transport/manager: Move error to score to the address store
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ecff792 - Browse repository at this point
Copy the full SHA ecff792View commit details -
transport/maanager: Update address score on open failure
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8a95ba8 - Browse repository at this point
Copy the full SHA 8a95ba8View commit details -
peer_state: Move open failure transitions to dedicated module
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd8ffb1 - Browse repository at this point
Copy the full SHA cd8ffb1View commit details -
transport/manager: Move to dedicated module
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bda30df - Browse repository at this point
Copy the full SHA bda30dfView commit details -
peer_state/tests: Check can dial states
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b2c51db - Browse repository at this point
Copy the full SHA b2c51dbView commit details -
peer_state/tests: Check disconnected -> dialing
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a6d8684 - Browse repository at this point
Copy the full SHA a6d8684View commit details -
peer_state/tests: Check Disconnected -> Opening
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5959e4e - Browse repository at this point
Copy the full SHA 5959e4eView commit details -
peer_state/tests: Check on dial failure
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6a613d8 - Browse repository at this point
Copy the full SHA 6a613d8View commit details
Commits on Sep 24, 2024
-
peer_state/tests: Check connection established
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 966cd18 - Browse repository at this point
Copy the full SHA 966cd18View commit details -
peer_state/tests: Check connection established for Dialing
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6751581 - Browse repository at this point
Copy the full SHA 6751581View commit details -
peer_state/tests: Check connection closed
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fc9a848 - Browse repository at this point
Copy the full SHA fc9a848View commit details -
peer_state/tests: Check open failure state
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fa03738 - Browse repository at this point
Copy the full SHA fa03738View commit details -
peer_state/tests: Check full lifecycle of a connection
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd3714f - Browse repository at this point
Copy the full SHA dd3714fView commit details -
manager: Remove pending connection state after success
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6050e96 - Browse repository at this point
Copy the full SHA 6050e96View commit details -
peer_state: Handle connection opening
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1555437 - Browse repository at this point
Copy the full SHA 1555437View commit details -
peer_state/tests: Check opening of connections
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c8058e - Browse repository at this point
Copy the full SHA 3c8058eView commit details -
manager: Better tracking of addresses for opening
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for de5354b - Browse repository at this point
Copy the full SHA de5354bView commit details -
peer_state: Return bool when dial failure was handled
Signed-off-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9869283 - Browse repository at this point
Copy the full SHA 9869283View commit details