()
| 717 | } |
| 718 | |
| 719 | func 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 |
no test coverage detected