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 <fujita@clear-code.com>
  • Loading branch information
Watson1978 committed Oct 3, 2024
1 parent 0d51bd0 commit 9206253
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 9206253

Please sign in to comment.