Skip to content

Commit

Permalink
grpcs: update WithContextDialer documentation to include using pass…
Browse files Browse the repository at this point in the history
…through resolver (grpc#7916)
  • Loading branch information
purnesh42H authored Dec 17, 2024
1 parent d0716f9 commit e8055ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dialoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ func WithTimeout(d time.Duration) DialOption {
// returned by f, gRPC checks the error's Temporary() method to decide if it
// should try to reconnect to the network address.
//
// Note that gRPC by default performs name resolution on the target passed to
// NewClient. To bypass name resolution and cause the target string to be
// passed directly to the dialer here instead, use the "passthrough" resolver
// by specifying it in the target string, e.g. "passthrough:target".
//
// Note: All supported releases of Go (as of December 2023) override the OS
// defaults for TCP keepalive time and interval to 15s. To enable TCP keepalive
// with OS defaults for keepalive time and interval, use a net.Dialer that sets
Expand Down

0 comments on commit e8055ea

Please sign in to comment.