Skip to content

Commit

Permalink
Remove timeout deadline for udp syslog input. (influxdata#4605)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Aug 29, 2018
1 parent 1e3edbc commit fed9595
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/inputs/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ func (s *Syslog) listenPacket(acc telegraf.Accumulator) {
break
}

if s.ReadTimeout != nil && s.ReadTimeout.Duration > 0 {
s.udpListener.SetReadDeadline(time.Now().Add(s.ReadTimeout.Duration))
}

message, err := p.Parse(b[:n], &s.BestEffort)
if message != nil {
acc.AddFields("syslog", fields(*message, s), tags(*message), s.time())
Expand Down

0 comments on commit fed9595

Please sign in to comment.