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

Commit 0e1ef9b

Browse files
authored
Merge pull request #50 from rabbitmq/tcp-config-port-defaults
Make sure a TCP listener is started by default
2 parents ea58b94 + 8f389ed commit 0e1ef9b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PROJECT_MOD = rabbit_web_mqtt_app
44

55
define PROJECT_ENV
66
[
7-
{tcp_config, [{ip, "127.0.0.1"}, {port, 15675}]},
7+
{tcp_config, [{port, 15675}]},
88
{ssl_config, []},
99
{num_tcp_acceptors, 10},
1010
{num_ssl_acceptors, 10},

priv/schema/rabbitmq_web_mqtt.schema

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
fun(Conf) ->
2121
Setting = cuttlefish:conf_get("web_mqtt.tcp.listener", Conf, undefined),
2222
case Setting of
23-
none -> [];
24-
undefined -> [];
23+
none -> [];
24+
undefined -> [{port, 15674}];
2525
{Ip, Port} when is_list(Ip), is_integer(Port) ->
2626
[{ip, Ip}, {port, Port}]
2727
end

test/config_schema_SUITE_data/rabbitmq_web_mqtt.snippets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
[{rabbitmq_web_mqtt,
1515
[{tcp_config, [{ip,"127.0.0.3"},{port,11122}]}]}],
1616
[rabbitmq_web_mqtt]},
17+
{tcp_config_defaut,
18+
"web_mqtt.tcp.backlog = 2048",
19+
[{rabbitmq_web_mqtt,
20+
[{tcp_config, [{backlog, 2048}]}]}],
21+
[rabbitmq_web_mqtt]},
1722
{tcp_config_ip,
1823
"web_mqtt.tcp.ip = 127.0.0.3",
1924
[{rabbitmq_web_mqtt,

0 commit comments

Comments
 (0)