Closed
Description
The commit f6698cf introduced the golang.org/x/net/proxy package into the standard library. At the same time, it also carried #19354. As far as I can see, the net/http package only requires a SOCKS client implementation, not a generic forward proxy client implementation. Moreover, the existing/introduced proxy package has several issues that will cause future troubleshooting difficulties like #11682.
I'd like to propose to do the following during Go 1.9 development cycle:
- factor out SOCKS client implementation code from x/net/proxy and make it a new package
- fix issues like x/net/proxy: does not support dialing with a given Context #19354 and x/net/proxy: SOCKS5 errors are all *errors.errorString #11682 in the new package
- replace vendored x/net/proxy with the new package