MCPcopy
hub / github.com/grpc/grpc-go / defaultDialOptions

Function defaultDialOptions

dialoptions.go:719–735  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

717}
718
719func defaultDialOptions() dialOptions {
720 return dialOptions{
721 copts: transport.ConnectOptions{
722 ReadBufferSize: defaultReadBufSize,
723 WriteBufferSize: defaultWriteBufSize,
724 SharedWriteBuffer: true,
725 UserAgent: grpcUA,
726 BufferPool: mem.DefaultBufferPool(),
727 },
728 bs: internalbackoff.DefaultExponential,
729 idleTimeout: 30 * time.Minute,
730 defaultScheme: "dns",
731 maxCallAttempts: defaultMaxCallAttempts,
732 useProxy: true,
733 enableLocalDNSResolution: false,
734 }
735}
736
737// withMinConnectDeadline specifies the function that clientconn uses to
738// get minConnectDeadline. This can be used to make connection attempts happen

Callers 1

NewClientFunction · 0.85

Calls 1

DefaultBufferPoolFunction · 0.92

Tested by

no test coverage detected