diff options
Diffstat (limited to 'rpc/ipc_windows.go')
-rw-r--r-- | rpc/ipc_windows.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rpc/ipc_windows.go b/rpc/ipc_windows.go index 1d4672ad2..09b01974e 100644 --- a/rpc/ipc_windows.go +++ b/rpc/ipc_windows.go @@ -239,6 +239,9 @@ func Dial(address string) (*PipeConn, error) { for { conn, err := dial(address, nmpwait_wait_forever) if err == nil { + // Ugly hack working around some async connectivity issues + time.Sleep(100 * time.Millisecond) + return conn, nil } if isPipeNotReady(err) { @@ -360,6 +363,9 @@ func Listen(address string) (*PipeListener, error) { if err != nil { return nil, err } + // Ugly hack working around some async connectivity issues + time.Sleep(100 * time.Millisecond) + return &PipeListener{ addr: PipeAddr(address), handle: handle, |