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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -213,10 +213,6 @@ func (s *Syslog) listenPacket(acc telegraf.Accumulator) {
break 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) message, err := p.Parse(b[:n], &s.BestEffort)
if message != nil { if message != nil {
acc.AddFields("syslog", fields(*message, s), tags(*message), s.time()) acc.AddFields("syslog", fields(*message, s), tags(*message), s.time())