()
| 263 | } |
| 264 | |
| 265 | func (cte *ConnectTimeoutError) Error() string { |
| 266 | return "memcache: connect timeout to " + cte.Addr.String() |
| 267 | } |
| 268 | |
| 269 | func (c *Client) dial(addr net.Addr) (net.Conn, error) { |
| 270 | ctx, cancel := context.WithTimeout(context.Background(), c.netTimeout()) |