aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-07-15 15:11:06 +0800
committerGitHub <noreply@github.com>2016-07-15 15:11:06 +0800
commitb7caa1751c83db797f648659bcf1cdb3c6be940a (patch)
tree96ccc3f9d25815928e82b81d6e6e3d690fa972b1 /rpc
parente11489eb5f58a63cb39a3189de7263837dc95b93 (diff)
parent39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0 (diff)
downloaddexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar.gz
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar.bz2
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar.lz
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar.xz
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.tar.zst
dexon-b7caa1751c83db797f648659bcf1cdb3c6be940a.zip
Merge pull request #2819 from fjl/rpc-back-to-npipe
Godeps, rpc: switch back to package npipe
Diffstat (limited to 'rpc')
-rw-r--r--rpc/ipc_windows.go6
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)
}