Commit Graph

7 Commits

Author SHA1 Message Date
Sean DuBois
d3a5bf5488 Clean ufrag from UDP/TCP Mux during ICERestart
TCP/UDP Mux would have old entries of closed PacketConns from restarted
ICE Agents. Move cleanup code from Closing the ICE Agent into a shared
function and also call it during Restart.
2022-01-23 23:09:16 -05:00
cgojin
1f4e18f401 Fix UDPMux logger
If no logger is passed in, it will be created.
Error running webrtc/examples/ice-single-port :
invalid memory address or nil pointer dereference
2021-04-27 14:13:03 +08:00
Sean DuBois
b3b84a5b0a Generalize UDP and TCP Mux
Refactor UDPMux to match TCPMux patterns. The goal is to have a
collection of mux instances and no specific UDP/TCP code

Resolves #350
2021-04-20 14:38:25 -07:00
David Zhao
35f704e2e4 Fix UDPMux read/write race condition
Resolves #351
2021-04-19 18:36:38 -07:00
David Zhao
166ba31563 Improved performance of UDPMux
The previous implementation of UDPMux was dropping
packets due to channel usage in the critical write path.
2021-04-18 13:44:08 -07:00
David Zhao
f7b11daf96 Improve UDPMux performance
improved buffer handling and prevents channel clogging
2021-04-14 14:19:07 -07:00
David Zhao
86d69d6ce5 Single port handling via UDPMux
Allows for ICE to handle connections on a single UDP port
2021-04-12 20:42:10 -07:00