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

chore: Update pion/ice fork to resolve goroutine leak #78

Merged
merged 13 commits into from
Jan 28, 2022
Merged

Conversation

kylecarbs
Copy link
Member

No description provided.

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

codecov bot commented Jan 27, 2022

Codecov Report

Merging #78 (f3717ca) into main (30dae97) will increase coverage by 0.05%.
The diff coverage is 93.10%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   72.02%   72.08%   +0.05%     
==========================================
  Files          88       88              
  Lines        3421     3417       -4     
  Branches       55       55              
==========================================
- Hits         2464     2463       -1     
+ Misses        750      746       -4     
- Partials      207      208       +1     
Flag Coverage Δ
unittest-go-macos-latest 67.68% <93.10%> (+0.13%) ⬆️
unittest-go-ubuntu-latest 70.00% <93.10%> (+0.16%) ⬆️
unittest-go-windows-latest 67.35% <93.10%> (-0.09%) ⬇️
unittest-js 78.30% <ø> (ø)
Impacted Files Coverage Δ
peer/conn.go 77.74% <93.10%> (+1.53%) ⬆️
peerbroker/listen.go 80.46% <0.00%> (-2.35%) ⬇️

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 30dae97...f3717ca. Read the comment docs.

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems sound

@@ -281,25 +274,36 @@ func (c *Conn) negotiate() {
case remoteDescription = <-c.remoteSessionDescriptionChannel:
}

c.opts.Logger.Debug(context.Background(), "setting remote description")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should put fields on these so they have more details

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't wanna leak the session description in logs, since it technically contains the exchange keys.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a risk? We already log this stuff on coder already. Only the two peers would be able to see the keys.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't really help IMO. Since we catch all errors, this would error if the session description was invalid.

@@ -2,9 +2,6 @@ module github.com/coder/coder

go 1.17

// Required until https://github.com/pion/ice/pull/413 is merged.
replace github.com/pion/ice/v2 => github.com/kylecarbs/ice/v2 v2.1.8-0.20220127013758-526c25708344
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, good to get rid of that fork 👍

@kylecarbs kylecarbs merged commit 27f7299 into main Jan 28, 2022
@kylecarbs kylecarbs deleted the iceleak branch January 28, 2022 02:43
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

3 participants