MCPcopy Index your code
hub / github.com/koding/kite / DialTimeout

Method DialTimeout

client.go:240–252  ·  view source on GitHub ↗

DialTimeout acts like Dial but takes a timeout.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

238
239// DialTimeout acts like Dial but takes a timeout.
240func (c *Client) DialTimeout(timeout time.Duration) error {
241 err := c.dial(timeout)
242
243 c.LocalKite.Log.Debug("Dialing '%s' kite: %s (error: %v)", c.Kite.Name, c.URL, err)
244
245 if err != nil {
246 return err
247 }
248
249 go c.run()
250
251 return nil
252}
253
254// Dial connects to the remote Kite. If it can't connect, it retries
255// indefinitely. It returns a channel to check if it's connected or not.

Callers 4

TestSendErrorFunction · 0.95
DialMethod · 0.95
helloMethod · 0.80

Calls 3

dialMethod · 0.95
runMethod · 0.95
DebugMethod · 0.80

Tested by 3

TestSendErrorFunction · 0.76
helloMethod · 0.64