Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

fix: TCP connections leaking after RTC disconnects#397

Merged
kylecarbs merged 8 commits intomasterfromleakyconn
Jul 26, 2021
Merged
Changes from1 commit
Commits
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
PrevPrevious commit
NextNext commit
Fix data race
  • Loading branch information
@kylecarbs
kylecarbs committedJul 22, 2021
commit76378039dc8ef3147d71b3345cc2e1e490a943c9
2 changes: 2 additions & 0 deletionswsnet/conn.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -169,7 +169,9 @@ func (c *dataChannelConn) Write(b []byte) (n int, err error) {

func (c *dataChannelConn) Close() error {
c.closedMutex.Lock()
c.writeMutex.Lock()
defer c.closedMutex.Unlock()
defer c.writeMutex.Unlock()
if !c.closed {
c.closed = true
close(c.sendMore)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp