- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for shouldConnect (0.16 sec)
-
internal/grid/connection_test.go
} c.Local = hosts[x] c.Remote = hosts[y] cReverse.Local = hosts[y] cReverse.Remote = hosts[x] if c.shouldConnect() == cReverse.shouldConnect() { t.Errorf("shouldConnect(%q, %q) != shouldConnect(%q, %q)", hosts[x], hosts[y], hosts[y], hosts[x]) } if c.shouldConnect() { should++ } } if should < 10 { t.Errorf("host %q only connects to %d hosts", hosts[x], should) }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Nov 21 01:09:35 GMT 2023 - 6K bytes - Viewed (0) -
internal/grid/connection.go
} if o.local == o.remote { panic("equal hosts") } if c.shouldConnect() { c.side = ws.StateClientSide go func() { if o.blockConnect != nil { <-o.blockConnect } c.connect() }() } if debugPrint { fmt.Println(c.Local, "->", c.Remote, "Should local connect:", c.shouldConnect(), "side:", c.side) } if debugReqs { fmt.Println("Created connection", c.String())
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 42.6K bytes - Viewed (0)