Skip to content

Commit 480d0b5

Browse files
authored
Merge pull request #70 from thaJeztah/use_gowinio
configureNpipeTransport: use winio.DialPipeContext()
2 parents 7662df5 + ad28c33 commit 480d0b5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sockets/sockets_windows.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
1717
// No need for compression in local communications.
1818
tr.DisableCompression = true
1919
tr.DialContext = func(ctx context.Context, _, _ string) (net.Conn, error) {
20-
// DialPipeContext() has been added to winio:
21-
// https://github.com/Microsoft/go-winio/commit/5fdbdcc2ae1c7e1073157fa7cb34a15eab472e1d
22-
// However, a new version of winio with this commit has not been released yet.
23-
// Continue to use DialPipe() until DialPipeContext() becomes available.
24-
//return winio.DialPipeContext(ctx, addr)
25-
return DialPipe(addr, defaultTimeout)
20+
return winio.DialPipeContext(ctx, addr)
2621
}
2722
return nil
2823
}

0 commit comments

Comments
 (0)