Skip to content

Consider deprecating Dial and DialContext and replacing with a NewClient #1786

Closed
@dfawley

Description

@dfawley

Dial and DialContext have several differences from how gRPC works in other languages. A NewClient function that works more like other languages would differ in at least two ways:

  1. Default to DNS resolver instead of passthrough.
  2. Make target compliant with RFC 3986 (Revise URI scheme parsing to be RFC 3986 compliant #1911).
  3. Start IDLE instead of CONNECTING.

If we create a NewClient, we'd probably also want to make matching ClientOptions instead of DialOptions, as some DialOptions (e.g. WithBlock or WithTimeout) do not make sense when not dialing synchronously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Type: FeatureNew features or improvements in behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions