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

refactor: Improve handshake resiliency of peer #95

Merged
merged 23 commits into from
Jan 31, 2022
Merged

refactor: Improve handshake resiliency of peer #95

merged 23 commits into from
Jan 31, 2022

Conversation

kylecarbs
Copy link
Member

We were depending on the close mutex to properly
report connection state. This ensures the RTC
connection is properly closed before returning.

@kylecarbs kylecarbs self-assigned this Jan 30, 2022
@codecov
Copy link

codecov bot commented Jan 30, 2022

Codecov Report

Merging #95 (cd775ab) into main (a7d6f4b) will increase coverage by 0.50%.
The diff coverage is 86.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   71.65%   72.15%   +0.50%     
==========================================
  Files          89       89              
  Lines        3612     3627      +15     
  Branches       55       55              
==========================================
+ Hits         2588     2617      +29     
+ Misses        799      791       -8     
+ Partials      225      219       -6     
Flag Coverage Δ
unittest-go-macos-latest 67.89% <85.79%> (+0.50%) ⬆️
unittest-go-ubuntu-latest 69.74% <83.52%> (+0.14%) ⬆️
unittest-go-windows-latest 67.55% <82.95%> (+0.25%) ⬆️
unittest-js 78.30% <ø> (ø)
Impacted Files Coverage Δ
peer/conn.go 77.34% <86.04%> (+2.48%) ⬆️
peer/channel.go 84.75% <100.00%> (-2.44%) ⬇️
peerbroker/dial.go 80.95% <100.00%> (+8.22%) ⬆️
peerbroker/listen.go 84.80% <100.00%> (+4.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7d6f4b...cd775ab. Read the comment docs.

@kylecarbs
Copy link
Member Author

Going to be bad and use admin privileges to merge this. The peer flake is actively hurting other PRs, so seems reasonable.

peer/conn.go Outdated Show resolved Hide resolved
@kylecarbs kylecarbs force-pushed the peerlog branch 2 times, most recently from 9758be4 to 1c61fef Compare January 30, 2022 03:48
We were depending on the close mutex to properly
report connection state. This ensures the RTC
connection is properly closed before returning.
@kylecarbs kylecarbs force-pushed the peerlog branch 3 times, most recently from 00f49f3 to 3367212 Compare January 30, 2022 05:20
@kylecarbs kylecarbs force-pushed the peerlog branch 3 times, most recently from 006ab67 to 8b33e86 Compare January 30, 2022 15:44
@kylecarbs kylecarbs force-pushed the peerlog branch 12 times, most recently from b493807 to e5cb06b Compare January 30, 2022 21:48
@kylecarbs kylecarbs force-pushed the peerlog branch 2 times, most recently from c5c8b65 to b69f269 Compare January 30, 2022 23:12
@kylecarbs kylecarbs force-pushed the peerlog branch 2 times, most recently from 7df4cc9 to e87d2cb Compare January 31, 2022 00:23
@kylecarbs kylecarbs force-pushed the peerlog branch 2 times, most recently from 93ce57e to 9ef1d89 Compare January 31, 2022 01:43
@kylecarbs kylecarbs changed the title refactor: Use a single channel for peer negotiation refactor: Improve handshake resiliency of peer Jan 31, 2022
@kylecarbs kylecarbs merged commit 9db5fb0 into main Jan 31, 2022
@kylecarbs kylecarbs deleted the peerlog branch January 31, 2022 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants