Disable data channel throttle by default (#3281)

* Disable data channel throttle by default

* data race

* err type
This commit is contained in:
cnderrauber
2024-12-21 12:08:54 +08:00
committed by GitHub
parent 92ae45cf07
commit 8fa1127724
6 changed files with 44 additions and 34 deletions
+1 -1
View File
@@ -777,7 +777,7 @@ func (t *PCTransport) onDataChannel(dc *webrtc.DataChannel) {
for {
n, _, err := rawDC.ReadDataChannel(buffer)
if err != nil {
if !errors.Is(err, io.EOF) {
if !errors.Is(err, io.EOF) && !strings.Contains(err.Error(), "state=Closed") {
t.params.Logger.Warnw("error reading data channel", err, "label", dc.Label())
}
return