do not set the UDP read buffer size in syslog datasource (#1657)
This commit is contained in:
parent
fa35e8c0ba
commit
7b8cd63b04
1 changed files with 1 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue