pion / webrtc

Pure Go implementation of the WebRTC API
https://pion.ly
MIT License
13.78k stars 1.66k forks source link

Failed to handle DCEP: invalid Message Type #2258

Closed dafapro closed 7 months ago

dafapro commented 2 years ago

Your environment.

What did you do?

create and close datachannels frequently, use those datachannels for short time communications.

What did you expect?

create data channel successfully

What happened?

datachannel ERROR: 2022/06/14 07:59:50 Failed to handle DCEP: invalid Message Type &{0 0 0 [103 97 116 101 119 97 121 45 105 79 83 45 49 54 53 53 49 57 51 53 56 57 46 54 54 54 52 51 54] []}

dafapro commented 2 years ago

After studying the code, I guess it is about missing implementation of reusing data channel.

shynome commented 2 years ago
params := &webrtc.DataChannelParameters{
    ID: &a, // set id will make it working
}
KMACEL commented 1 year ago

Any progress on this task?