diff options
author | Felix Lange <fjl@twurst.com> | 2016-07-15 04:53:33 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-07-15 05:03:40 +0800 |
commit | 74be4a62c53891016cc0bbd3f9b5ed5d0539efe4 (patch) | |
tree | e2659d1a7cd37b0497d7ad3280c27d925d9b586e /rpc/ipc_windows.go | |
parent | e11489eb5f58a63cb39a3189de7263837dc95b93 (diff) | |
download | dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar.gz dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar.bz2 dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar.lz dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar.xz dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.tar.zst dexon-74be4a62c53891016cc0bbd3f9b5ed5d0539efe4.zip |
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.
Diffstat (limited to 'rpc/ipc_windows.go')
-rw-r--r-- | rpc/ipc_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) } |