Skip to content

Commit 9206253

Browse files
committed
in_udp: mark receive_buffer_size parameter as deprecated
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 0d51bd0 commit 9206253

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/fluent/plugin/in_udp.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ class UdpInput < Input
4343
desc "Remove newline from the end of incoming payload"
4444
config_param :remove_newline, :bool, default: true
4545
desc "The max size of socket receive buffer. SO_RCVBUF"
46-
config_param :receive_buffer_size, :size, default: nil
46+
config_param :receive_buffer_size, :size, default: nil, deprecated: "use receive_buffer_size in transport section instead."
4747

4848
config_param :blocking_timeout, :time, default: 0.5
4949

50+
# overwrite server plugin to change default to :udp and remove tcp/tls protocol from list
51+
config_section :transport, required: false, multi: false, init: true, param_name: :transport_config do
52+
config_argument :protocol, :enum, list: [:udp], default: :udp
53+
end
54+
5055
def configure(conf)
5156
compat_parameters_convert(conf, :parser)
5257
parser_config = conf.elements('parse').first

0 commit comments

Comments
 (0)