Skip to content

Why does grpc.NewClient silently ignore DialOptions? #7328

@SamMobed

Description

@SamMobed

Hi,

The grpc.NewClient godoc specifies how DialOptions returned by WithBlock, WithTimeout, WithReturnConnectionError, and FailOnNonTempDialError are ignored by it.

In the following document, it's explained that using deprecated DialOptions can cause problems.

I'm wondering why NewClient silently ignores these options when they are set by users, instead of returning an error? The user might be expecting a certain behavior when creating the connection, and silently ignoring these options instead of explicitly raising an error might hurt their work.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions