Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Unified Diff: logdog/client/butler/streamserver/namedPipe_windows.go

Issue 2866473002: Revert "Switch from "winio" to "npipe"." (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | logdog/client/butler/streamserver/namedPipe_windows_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/butler/streamserver/namedPipe_windows.go
diff --git a/logdog/client/butler/streamserver/namedPipe_windows.go b/logdog/client/butler/streamserver/namedPipe_windows.go
index d416a73e70e2b8907c001e5321b3bece79f8590c..fb3d0c025e3a58ce61336c01884ba4b58f12d69e 100644
--- a/logdog/client/butler/streamserver/namedPipe_windows.go
+++ b/logdog/client/butler/streamserver/namedPipe_windows.go
@@ -13,7 +13,7 @@ import (
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/logdog/client/butlerlib/streamclient"
- "gopkg.in/natefinch/npipe.v2"
+ "github.com/Microsoft/go-winio"
)
// maxWindowsNamedPipeLength is the maximum length of a Windows named pipe.
@@ -42,7 +42,7 @@ func NewNamedPipeServer(ctx context.Context, name string) (StreamServer, error)
"pipePath": pipePath,
}.Debugf(ctx, "Creating Windows server socket Listener.")
- l, err := npipe.Listen(pipePath)
+ l, err := winio.ListenPipe(pipePath, nil)
if err != nil {
return nil, "", errors.Annotate(err).Reason("failed to listen on named pipe").Err()
}
« no previous file with comments | « no previous file | logdog/client/butler/streamserver/namedPipe_windows_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698