versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.27k stars 1.13k forks source link

worker process silently exits if TcpConnectionHandle::SetPeerAddress() fails #1428

Closed ibc closed 4 months ago

ibc commented 4 months ago

mediasoup demo (mediasoup 3.14.8) stopped working and those are the only potential related logs. No core dump at all.

2024-07-19T09:29:23.440Z mediasoup:ERROR:Channel [pid:127002] TcpConnectionHandle::SetPeerAddress() | uv_tcp_getpeername() failed: socket is not connected
2024-07-19T09:29:23.440Z mediasoup:ERROR:Channel [pid:127002] TcpConnectionHandle::Start() | throwing MediaSoupError: error setting peer IP and port

No more logs, meaning that the worker did not even crash so Worker TS class didn't emit "died".

ibc commented 4 months ago

More info:

return; }

ibc commented 4 months ago

Ok, the error in the demo was "cannot connect to WS" so this was something else not related to mediasoup.