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.
This commit is contained in:
Felix Lange
2016-07-14 22:53:33 +02:00
parent e11489eb5f
commit 74be4a62c5
20 changed files with 1174 additions and 1847 deletions

View File

@ -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)
}