cmd, node, rpc: move websockets into node, break singleton
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user