Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit e571af2

Browse files
Additional tests extracted from rabbitmq/rabbitmq-stomp#130
The settings are already supported by this plugin.
1 parent eebcd5d commit e571af2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

test/config_schema_SUITE_data/rabbitmq_mqtt.snippets

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,43 @@
2828
{tcp_listen_options,[{backlog,128},{nodelay,true}]},
2929
{proxy_protocol,false}]}],
3030
[rabbitmq_mqtt]},
31+
32+
{listener_tcp_options,
33+
"mqtt.listeners.tcp.1 = 127.0.0.1:61613
34+
mqtt.listeners.tcp.2 = ::1:61613
35+
36+
mqtt.tcp_listen_options.backlog = 2048
37+
mqtt.tcp_listen_options.recbuf = 8192
38+
mqtt.tcp_listen_options.sndbuf = 8192
39+
40+
mqtt.tcp_listen_options.keepalive = true
41+
mqtt.tcp_listen_options.nodelay = true
42+
43+
mqtt.tcp_listen_options.exit_on_close = true
44+
45+
mqtt.tcp_listen_options.send_timeout = 120
46+
",
47+
[{rabbitmq_mqtt,[
48+
{tcp_listeners,[
49+
{"127.0.0.1",61613},
50+
{"::1",61613}
51+
]}
52+
, {tcp_listen_options, [
53+
{backlog, 2048},
54+
{exit_on_close, true},
55+
56+
{recbuf, 8192},
57+
{sndbuf, 8192},
58+
59+
{send_timeout, 120},
60+
61+
{keepalive, true},
62+
{nodelay, true}
63+
]}
64+
]}],
65+
[rabbitmq_mqtt]},
66+
67+
3168
{ssl,
3269
"ssl_options.cacertfile = test/config_schema_SUITE_data/certs/cacert.pem
3370
ssl_options.certfile = test/config_schema_SUITE_data/certs/cert.pem

0 commit comments

Comments
 (0)