Remove timeout deadline for udp syslog input. (#4605)

This commit is contained in:
Daniel Nelson
2018-08-29 11:39:10 -07:00
committed by GitHub
parent 1e3edbc55d
commit fed959531c

View File

@@ -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())