meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

[1.2.3] Datachanels iceState always disconnects in Chrome like browsers #3400

Closed smerchkz closed 4 months ago

smerchkz commented 4 months ago

What version of Janus is this happening on? ea2799743d49938077c8267d85af1cf79777d3c5

Have you tested a more recent version of Janus too? janus 0.14.2, 1.2.3, 1.2.2 libnice 0.1.18, 0.1.22 libsrtp 2.2.0, 2.2.6 usrsctp last version from master

Additional context In Firefox all works fine, but in Chrome, Opera, Egde Datachanel open and join member, but always lose subscribe on channel, iceStace always change to disconnect after 5-6 sec. data.send event no logs. In janus logs in level 5 i find:

Peer address Unknown family 123 is now SCTP_ADDR_UNREACHABLE (error = 0x00000000).

and this:

[Thu Jun 27 20:41:53 2024] Sent [Thu Jun 27 20:41:53 2024] message with PPID = 51, SID = 0, flags: 0x0003 due to error = 0x00000000[Thu Jun 27 20:41:53 2024] 0x7b[Thu Jun 27 20:41:53 2024] 0x0a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x65[Thu Jun 27 20:41:53 2024] 0x78[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x72[Thu Jun 27 20:41:53 2024] 0x6f[Thu Jun 27 20:41:53 2024] 0x6f[Thu Jun 27 20:41:53 2024] 0x6d[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x3a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x73[Thu Jun 27 20:41:53 2024] 0x75[Thu Jun 27 20:41:53 2024] 0x63[Thu Jun 27 20:41:53 2024] 0x63[Thu Jun 27 20:41:53 2024] 0x65[Thu Jun 27 20:41:53 2024] 0x73[Thu Jun 27 20:41:53 2024] 0x73[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x2c[Thu Jun 27 20:41:53 2024] 0x0a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x70[Thu Jun 27 20:41:53 2024] 0x61[Thu Jun 27 20:41:53 2024] 0x72[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x69[Thu Jun 27 20:41:53 2024] 0x63[Thu Jun 27 20:41:53 2024] 0x69[Thu Jun 27 20:41:53 2024] 0x70[Thu Jun 27 20:41:53 2024] 0x61[Thu Jun 27 20:41:53 2024] 0x6e[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x73[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x3a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x5b[Thu Jun 27 20:41:53 2024] 0x5d[Thu Jun 27 20:41:53 2024] 0x2c[Thu Jun 27 20:41:53 2024] 0x0a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x72[Thu Jun 27 20:41:53 2024] 0x61[Thu Jun 27 20:41:53 2024] 0x6e[Thu Jun 27 20:41:53 2024] 0x73[Thu Jun 27 20:41:53 2024] 0x61[Thu Jun 27 20:41:53 2024] 0x63[Thu Jun 27 20:41:53 2024] 0x74[Thu Jun 27 20:41:53 2024] 0x69[Thu Jun 27 20:41:53 2024] 0x6f[Thu Jun 27 20:41:53 2024] 0x6e[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x3a[Thu Jun 27 20:41:53 2024] 0x20[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x62[Thu Jun 27 20:41:53 2024] 0x7a[Thu Jun 27 20:41:53 2024] 0x39[Thu Jun 27 20:41:53 2024] 0x51[Thu Jun 27 20:41:53 2024] 0x42[Thu Jun 27 20:41:53 2024] 0x6c[Thu Jun 27 20:41:53 2024] 0x6f[Thu Jun 27 20:41:53 2024] 0x66[Thu Jun 27 20:41:53 2024] 0x49[Thu Jun 27 20:41:53 2024] 0x30[Thu Jun 27 20:41:53 2024] 0x4f[Thu Jun 27 20:41:53 2024] 0x45[Thu Jun 27 20:41:53 2024] 0x22[Thu Jun 27 20:41:53 2024] 0x0a[Thu Jun 27 20:41:53 2024] 0x7d[Thu Jun 27 20:41:53 2024] . [Thu Jun 27 20:41:53 2024] Association change [Thu Jun 27 20:41:53 2024] SCTP_COMM_LOST[Thu Jun 27 20:41:53 2024] , streams (in/out) = (300/300)[Thu Jun 27 20:41:53 2024] .

helps only enabled ice_enforce_list = "ens3" in janus.jcfg

ens3 interface is my public ip. Before, last time, i never use this option and all works very well. Maybe this note will help other participants of your project, for me it had to save 3 days of searching for this bug. I think this bug connected with new version chromium browsers. Maybe i'm wrong, but i don't have enough knowledge in WebRTC to understand it.

lminiero commented 4 months ago

I don't know if this could be a breaking change in usrsctp latest version: data channels definitely work as expected on both Chrome and Firefox for me. I'm using usrsctp version 0.9.5.0, in case you want to give that version a go too.

That said, not sure what bug you're talking about. The fact it works with a specific interface and not others suggests you're experiencing connectivity issues, which have nothing to do with Janus or potential bugs. Closing as not an issue.