Dead connection is still nominated, selected pair is not updated
I'm developing a server application using libnice.
We have a case:
- mobile client connects to the server using LTE, sends remote candidates, libnice selects correct candidate pair
- client turns on wi-fi connection, sends new remote candidate, new candidate pair is nominated and selected
- client turns off wi-fi connection, but candidate pair (for wi-fi remote candidate) is never discarded and still nominated, and selected pair is not changed. As a result server keeps sending data to dead wi-fi connection.
I tried "controlling-mode" and "keepalive-conncheck" options with no success. I attached an excerpt from libnice debug logs, with comments. out_trunk.log