WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f145fb3

Browse files
committed
sockets: remove deprecated DialPipe, GetProxyEnv, DialerFromEnvironment
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 42faf79 commit f145fb3

File tree

4 files changed

+1
-54
lines changed

4 files changed

+1
-54
lines changed

sockets/proxy.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

sockets/sockets.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ func ConfigureTransport(tr *http.Transport, proto, addr string) error {
4242
return nil
4343
}
4444

45-
// DialPipe connects to a Windows named pipe. It is not supported on
46-
// non-Windows platforms.
47-
//
48-
// Deprecated: use [github.com/Microsoft/go-winio.DialPipe] or [github.com/Microsoft/go-winio.DialPipeContext].
49-
func DialPipe(addr string, timeout time.Duration) (net.Conn, error) {
50-
return dialPipe(addr, timeout)
51-
}
52-
5345
func configureUnixTransport(tr *http.Transport, proto, addr string) error {
5446
if len(addr) > maxUnixSocketPathSize {
5547
return fmt.Errorf("unix socket path %q is too long", addr)

sockets/sockets_unix.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22

33
package sockets
44

5-
import (
6-
"net"
7-
"net/http"
8-
"syscall"
9-
"time"
10-
)
5+
import "net/http"
116

127
func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
138
return ErrProtocolNotAvailable
149
}
15-
16-
func dialPipe(_ string, _ time.Duration) (net.Conn, error) {
17-
return nil, syscall.EAFNOSUPPORT
18-
}

sockets/sockets_windows.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"net"
66
"net/http"
7-
"time"
87

98
"github.com/Microsoft/go-winio"
109
)
@@ -17,7 +16,3 @@ func configureNpipeTransport(tr *http.Transport, proto, addr string) error {
1716
}
1817
return nil
1918
}
20-
21-
func dialPipe(addr string, timeout time.Duration) (net.Conn, error) {
22-
return winio.DialPipe(addr, &timeout)
23-
}

0 commit comments

Comments
 (0)