Skip to content

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

Merged
kylecarbs merged 13 commits into
mainfrom
iceleak
Jan 28, 2022
Merged

kylecarbs merged 13 commits into
mainfrom
iceleak

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

No description provided.

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

codecov Bot commented Jan 27, 2022 •

Copy link
Copy Markdown

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.

@deansheather deansheather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

seems sound

Comment thread peer/conn.go
case remoteDescription = <-c.remoteSessionDescriptionChannel:
}

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

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
Collaborator

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
Copy Markdown
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.

Comment thread go.mod
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
Copy Markdown

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
mafredri added a commit that referenced this pull request Oct 29, 2026
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.

3 participants