mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
debugging
This commit is contained in:
parent
ce628ea604
commit
1637765aad
1 changed files with 2 additions and 0 deletions
|
@ -49,8 +49,10 @@ func NewConnection(address string, timelimit ...time.Duration) (c *Comm, err err
|
|||
log.Debug(err)
|
||||
return
|
||||
}
|
||||
log.Debug("dialing with dialer.Dial")
|
||||
connection, err = dialer.Dial("tcp", address)
|
||||
} else {
|
||||
log.Debugf("dialing to %s with timelimit %s", address, tlimit)
|
||||
connection, err = net.DialTimeout("tcp", address, tlimit)
|
||||
}
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue