Skip to content

Commit

Permalink
in_udp: mark receive_buffer_size parameter as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Oct 7, 2024
1 parent 2823025 commit e7092ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/fluent/plugin/in_udp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ class UdpInput < Input
desc "Remove newline from the end of incoming payload"
config_param :remove_newline, :bool, default: true
desc "The max size of socket receive buffer. SO_RCVBUF"
config_param :receive_buffer_size, :size, default: nil
config_param :receive_buffer_size, :size, default: nil, deprecated: "use receive_buffer_size in transport section instead."

config_param :blocking_timeout, :time, default: 0.5

# overwrite server plugin to change default to :udp and remove tcp/tls protocol from list
config_section :transport, required: false, multi: false, init: true, param_name: :transport_config do
config_argument :protocol, :enum, list: [:udp], default: :udp
end

def configure(conf)
compat_parameters_convert(conf, :parser)
parser_config = conf.elements('parse').first
Expand Down

0 comments on commit e7092ff

Please sign in to comment.