amazon-kinesis-video-streams-webrtc-sdk-c
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard
[QUESTION] host ice candidate socket and srflx ice candidate socket stay open until the peer connection is closed. Is it intended?
When webrtc KVS SDK is doing the ICE negotiation, it opens multiple UDP/TCP, one for each host ice candidate, one for each srflx ice candidate, and one for each turn server.
After an ice candidates pair is chosen, a.k.a. a remote ice candidate and a local ice candidate have exchanged stun packets, the not-in-use TURN sockets are closed,
But, SDK doesn’t close not-in-use host ice sockets and srflx ice sockets when an ice candidate pair is chosen, and only closes them when the peer connection is closed. Therefore, while live streaming is running, there are sockets open and idling. Is this intended behavior? Is there any network security concern? Is there any system resources wasting concern?