Skip to content

Commit

Permalink
Do not set deadline on connection with deadline already set
Browse files Browse the repository at this point in the history
closes #841
  • Loading branch information
sparrc committed Mar 22, 2016
1 parent 69606a4 commit e3f7eda
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/inputs/memcached/memcached.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ func (m *Memcached) gatherServer(
defer conn.Close()
}

// Extend connection
conn.SetDeadline(time.Now().Add(defaultTimeout))

// Read and write buffer
rw := bufio.NewReadWriter(bufio.NewReader(conn), bufio.NewWriter(conn))

Expand Down

0 comments on commit e3f7eda

Please sign in to comment.