more complete and improved client rendezvous tests

This commit is contained in:
Serene Han 2016-05-18 13:08:10 -07:00
parent 361da32ecb
commit 00196bbd74
3 changed files with 58 additions and 20 deletions

View file

@ -59,7 +59,8 @@ type SnowflakeChannel interface {
// Maintain |SnowflakeCapacity| number of available WebRTC connections, to
// transfer to the Tor SOCKS handler when needed.
func SnowflakeConnectLoop() {
broker = NewBrokerChannel(brokerURL, frontDomain)
transport := CreateBrokerTransport()
broker = NewBrokerChannel(brokerURL, frontDomain, transport)
for {
numRemotes := len(webrtcRemotes)
if numRemotes >= SnowflakeCapacity {