mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-03 12:28:28 +00:00
wip
This commit is contained in:
parent
842934347d
commit
ccf5553d10
@ -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
|
||||
fmt.Println("dialing", addr)
|
||||
clientConn, err := dialer.Dial(ctx, deviceId, addr)
|
||||
fmt.Println("clientConn", clientConn.LocalAddr(), "->", clientConn.RemoteAddr())
|
||||
if err != nil {
|
||||
fmt.Println("error", err)
|
||||
for i := 0; i < 10 && err != nil; i++ {
|
||||
clientConn, err = dialer.Dial(ctx, deviceId, addr)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
@ -481,6 +481,7 @@ func withConnectionPair(b interface{ Fatal(...interface{}) }, connUri string, h
|
||||
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
|
||||
// to fire on the other side.
|
||||
|
Loading…
x
Reference in New Issue
Block a user