Skip to content

Commit

Permalink
Merge pull request #2 from heedson/patch-1
Browse files Browse the repository at this point in the history
Update client to not require a successful ping
  • Loading branch information
stevenh authored Apr 13, 2018
2 parents 6444453 + a51b818 commit 7c0659f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ func newConn(conf connConfig, muted bool) (*conn, error) {
if err != nil {
return c, err
}
// When using UDP do a quick check to see if something is listening on the
// given port to return an error as soon as possible.
if c.network[:3] == "udp" {
for i := 0; i < 2; i++ {
_, err = c.w.Write(nil)
if err != nil {
_ = c.w.Close()
c.w = nil
return c, err
}
}
}

// To prevent a buffer overflow add some capacity to the buffer to allow for
// an additional metric.
Expand Down

0 comments on commit 7c0659f

Please sign in to comment.