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

Commit9f5c864

Browse files
committed
fix: Remove microsecond wait in peer.(*Channel) (#1270)
This was implemented when our WebRTC code was much less hardened.It's likely this was a cause of some other problem.Closes#1076.
1 parent16f915f commit9f5c864

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎peer/channel.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"io"
77
"net"
88
"sync"
9-
"time"
109

1110
"github.com/pion/datachannel"
1211
"github.com/pion/webrtc/v3"
@@ -245,13 +244,6 @@ func (c *Channel) Write(bytes []byte) (n int, err error) {
245244
ifc.dc.BufferedAmount()+uint64(len(bytes))>=maxBufferedAmount {
246245
<-c.sendMore
247246
}
248-
// REMARK: There's an obvious race-condition here. This is an edge-case, as
249-
// most-frequently data won't be pooled so synchronously, but is
250-
// definitely possible.
251-
//
252-
// See: https://github.com/pion/sctp/issues/181
253-
time.Sleep(time.Microsecond)
254-
255247
returnc.rwc.Write(bytes)
256248
}
257249

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp