This commit is contained in:
Jakob Borg 2021-11-22 09:46:14 +01:00
parent 842934347d
commit ccf5553d10

View File

@ -471,8 +471,8 @@ func withConnectionPair(b interface{ Fatal(...interface{}) }, connUri string, h
// Relays might take some time to register the device, so dial multiple times // Relays might take some time to register the device, so dial multiple times
fmt.Println("dialing", addr) fmt.Println("dialing", addr)
clientConn, err := dialer.Dial(ctx, deviceId, addr) clientConn, err := dialer.Dial(ctx, deviceId, addr)
fmt.Println("clientConn", clientConn.LocalAddr(), "->", clientConn.RemoteAddr())
if err != nil { if err != nil {
fmt.Println("error", err)
for i := 0; i < 10 && err != nil; i++ { for i := 0; i < 10 && err != nil; i++ {
clientConn, err = dialer.Dial(ctx, deviceId, addr) clientConn, err = dialer.Dial(ctx, deviceId, addr)
time.Sleep(100 * time.Millisecond) time.Sleep(100 * time.Millisecond)
@ -481,6 +481,7 @@ func withConnectionPair(b interface{ Fatal(...interface{}) }, connUri string, h
b.Fatal(err) b.Fatal(err)
} }
} }
fmt.Println("clientConn", clientConn.LocalAddr(), "->", clientConn.RemoteAddr())
// Quic does not start a stream until some data is sent through, so send something for the AcceptStream // Quic does not start a stream until some data is sent through, so send something for the AcceptStream
// to fire on the other side. // to fire on the other side.