Skip to content

Commit

Permalink
Revert "configureNpipeTransport: use winio.DialPipeContext()"
Browse files Browse the repository at this point in the history
This reverts commit ad28c33.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jul 26, 2021
1 parent 19fbef2 commit af95011
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sockets/sockets_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
// No need for compression in local communications.
tr.DisableCompression = true
tr.DialContext = func(ctx context.Context, _, _ string) (net.Conn, error) {
return winio.DialPipeContext(ctx, addr)
// DialPipeContext() has been added to winio:
// https://github.com/Microsoft/go-winio/commit/5fdbdcc2ae1c7e1073157fa7cb34a15eab472e1d
// However, a new version of winio with this commit has not been released yet.
// Continue to use DialPipe() until DialPipeContext() becomes available.
//return winio.DialPipeContext(ctx, addr)
return DialPipe(addr, defaultTimeout)
}
return nil
}
Expand Down

0 comments on commit af95011

Please sign in to comment.