[Filebeat] udp input - unneccessary multiplication by KiB #41131
Labels
Filebeat
Filebeat
Team:Security-Deployment and Devices
Deployment and Devices Team in Security Solution
beats/filebeat/inputsource/udp/server.go
Lines 65 to 67 in 56a17e0
There is no need to multiple the
config.ReadBuffer
by the size of KiB. The value is already converted into the user's specified unit type when the config is unmarshaled. And secondly, the resulting value is only used in the context of checking if it is non-zero.So just remove the entire declaration of the
socketSize
variable in this code.The text was updated successfully, but these errors were encountered: