do not set the UDP read buffer size in syslog datasource (#1657)

This commit is contained in:
blotus 2022-07-13 10:18:03 +02:00 committed by GitHub
parent fa35e8c0ba
commit 7b8cd63b04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,10 +39,7 @@ func (s *SyslogServer) Listen(listenAddr string, port int) error {
}
s.Logger.Debugf("listening on %s:%d", s.listenAddr, s.port)
s.udpConn = udpConn
err = s.udpConn.SetReadBuffer(s.MaxMessageLen) // FIXME probably
if err != nil {
return errors.Wrap(err, "could not set readbuffer on UDP socket")
}
err = s.udpConn.SetReadDeadline(time.Now().UTC().Add(100 * time.Millisecond))
if err != nil {
return errors.Wrap(err, "could not set read deadline on UDP socket")