Skip to content
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

Implement certificate exchange #378

Merged
merged 44 commits into from
Jul 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d42630d
Implement certificate exchange
Stebalien Jun 3, 2024
e0083a0
revert golang version bump
Stebalien Jun 27, 2024
adbf3b3
certexchange: []PowerEntry -> PowerEntries
Stebalien Jun 27, 2024
9435cb5
certexchange: better handle setup errors
Stebalien Jun 27, 2024
c2a53ec
fix generated files
Stebalien Jun 27, 2024
75692d8
remove unused parameter
Stebalien Jun 27, 2024
046577d
remove preferential new-peer handling
Stebalien Jun 28, 2024
a8fdf91
remove time from the interval predictor
Stebalien Jun 28, 2024
139089c
basic predictor test
Stebalien Jun 28, 2024
5a3dbe0
test and improve predictor convergence
Stebalien Jun 28, 2024
e9a2f26
improve convergence test
Stebalien Jun 28, 2024
1b159ad
test hit/miss tracking
Stebalien Jun 28, 2024
665d845
improve initialization
Stebalien Jun 28, 2024
ce583da
test peer tracker
Stebalien Jun 28, 2024
a010357
fix include power-table bug
Stebalien Jul 1, 2024
9d60913
remove special-casing for zero limit
Stebalien Jul 1, 2024
81427cf
basic client/server test
Stebalien Jul 1, 2024
0aa7d56
don't return instances beyond pending, even if we have them
Stebalien Jul 1, 2024
84ea978
two final protocol tests
Stebalien Jul 1, 2024
661145b
fix request cancellation logic
Stebalien Jul 1, 2024
35026c4
poll result stringer
Stebalien Jul 1, 2024
44cd17c
test poller
Stebalien Jul 1, 2024
7f0e6a0
fixes and test subscriber
Stebalien Jul 1, 2024
0d47580
lints
Stebalien Jul 1, 2024
4219e2d
remove test logging
Stebalien Jul 2, 2024
be373d0
fix lints
Stebalien Jul 2, 2024
0a09e4f
fix peer-tracker off-by-one bug
Stebalien Jul 2, 2024
a87bfe9
don't require local stringer install
Stebalien Jul 4, 2024
8fa98b0
Merge branch 'main' into steb/certexchange
Stebalien Jul 4, 2024
bec6c3d
remove test-only method
Stebalien Jul 4, 2024
5ca20b8
use a mock clock
Stebalien Jul 4, 2024
89a32fa
improve timing reliability
Stebalien Jul 4, 2024
13e3283
improved logging
Stebalien Jul 4, 2024
a0daf56
improve test reliability
Stebalien Jul 4, 2024
4bdf36e
cleanup
Stebalien Jul 4, 2024
33e8117
implement GC
Stebalien Jul 4, 2024
f78af6e
latency tracking
Stebalien Jul 4, 2024
e4086e2
improve reliability of subscribe tests
Stebalien Jul 4, 2024
dd747a7
fix comment
Stebalien Jul 4, 2024
d0f2fd6
fix build
Stebalien Jul 4, 2024
8f386bf
spelling
Stebalien Jul 4, 2024
6dd8e20
fix heap usage
Stebalien Jul 4, 2024
f0ab0fa
test heap
Stebalien Jul 4, 2024
c050802
make the subscribe test pass more reliably
Stebalien Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comment
  • Loading branch information
Stebalien committed Jul 4, 2024
commit dd747a7215ae2960fb45878e855d9a93ae25dd3a
2 changes: 1 addition & 1 deletion certexchange/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *Client) Request(ctx context.Context, p peer.ID, req *Request) (_rh *Res
if err != nil {
return nil, nil, err
}
// Reset the stream if the parent context is canceled. We never call the returned cancel
// Reset the stream if the parent context is canceled. We never call the returned stop
// function because we call the cancel function returned by `withDeadline` (which cancels
// the entire context tree).
context.AfterFunc(ctx, func() { _ = stream.Reset() })
Expand Down
Loading