Offload connection setup, pool factories, real remote addresses
Connection setup hops from the signaling I/O thread to the server channel event loop: the signaling thread only registers the signal handler (so candidates arriving behind an offer are never dropped) and its keepalives can no longer be starved by blocking native WebRTC calls. Candidates arriving before the peer connection exists are queued in order. The server channel can be backed by a pool of PeerConnectionFactory instances with round robin assignment, spreading DTLS and SCTP load across several native network threads instead of serializing every player on one. Channels now receive their real remote address from the ICE selected candidate pair callback, which fires before DTLS and the data channels open, replacing the random placeholder before activation. Relayed connections record the TURN relay address. The old commented out getStats approach is removed.
S
SendableMetatype committed
6bec680ed79010bbfeb32c0c179eb0af387439fc
Parent: 1cf5a8b