From 74be4a62c53891016cc0bbd3f9b5ed5d0539efe4 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 14 Jul 2016 22:53:33 +0200 Subject: Godeps, rpc: switch back to package npipe The named pipe implementation from go-winio has some issues that need to be addressed before we can use it again. --- rpc/ipc_windows.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpc') diff --git a/rpc/ipc_windows.go b/rpc/ipc_windows.go index 8762cdb0d..8342d04d5 100644 --- a/rpc/ipc_windows.go +++ b/rpc/ipc_windows.go @@ -22,16 +22,16 @@ import ( "net" "time" - winio "github.com/microsoft/go-winio" + "gopkg.in/natefinch/npipe.v2" ) // ipcListen will create a named pipe on the given endpoint. func ipcListen(endpoint string) (net.Listener, error) { - return winio.ListenPipe(endpoint, &winio.PipeConfig{}) + return npipe.Listen(endpoint) } // newIPCConnection will connect to a named pipe with the given endpoint as name. func newIPCConnection(endpoint string) (net.Conn, error) { timeout := 5 * time.Second - return winio.DialPipe(endpoint, &timeout) + return npipe.DialTimeout(endpoint, timeout) } -- cgit v1.2.3