Skip to content

Commit

Permalink
Merge branch 'main' into feature/kafka_add_zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
gwy1995 authored Oct 22, 2024
2 parents 0c0c73d + 7ca9893 commit efeb4b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ https://github.com/elastic/beats/compare/v8.13.2\...v8.13.3[View commits]

*Metricbeat*

- Add new fields to configure the lease duration, retry and renew when using leader elector with Kubernetes autodiscover.{pull}38471[38471]
- Add new fields to configure the lease duration, retry and renew when using leader elector with Kubernetes autodiscover. {pull}38471[38471]


[[release-notes-8.13.2]]
Expand Down
7 changes: 3 additions & 4 deletions filebeat/inputsource/udp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ package udp
import (
"net"

"github.com/dustin/go-humanize"

"github.com/elastic/beats/v7/filebeat/inputsource"
"github.com/elastic/beats/v7/filebeat/inputsource/common/dgram"
"github.com/elastic/elastic-agent-libs/logp"
Expand Down Expand Up @@ -62,12 +60,13 @@ func (u *Server) createConn() (net.PacketConn, error) {
if err != nil {
return nil, err
}
socketSize := int(u.config.ReadBuffer) * humanize.KiByte
if socketSize != 0 {

if int(u.config.ReadBuffer) != 0 {
if err := listener.SetReadBuffer(int(u.config.ReadBuffer)); err != nil {
return nil, err
}
}

u.localaddress = listener.LocalAddr().String()

return listener, err
Expand Down

0 comments on commit efeb4b3

Please sign in to comment.