Skip to content

proposal: x/net/internal/socks, socks_bundle.go in net/http: new package #19688

Closed
@mikioh

Description

@mikioh

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:

  1. factor out SOCKS client implementation code from x/net/proxy and make it a new package
  2. 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
  3. replace vendored x/net/proxy with the new package

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions