From a20ef0376b223b64dcc4ad41c5df4e220cbc4565 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Tue, 19 Dec 2023 13:01:06 +0100 Subject: [PATCH] test(exproto): fix too small buffer size for listener These options have not been picked up by the listener before esockd 5.11.0, so it was not apparent that they are not working. --- apps/emqx_gateway_exproto/test/emqx_exproto_SUITE.erl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/emqx_gateway_exproto/test/emqx_exproto_SUITE.erl b/apps/emqx_gateway_exproto/test/emqx_exproto_SUITE.erl index 76e11ef00..74a488abb 100644 --- a/apps/emqx_gateway_exproto/test/emqx_exproto_SUITE.erl +++ b/apps/emqx_gateway_exproto/test/emqx_exproto_SUITE.erl @@ -663,9 +663,11 @@ tcp_opts() -> udp_opts() -> #{ - recbuf => 1024, - sndbuf => 1024, - buffer => 1024, + %% NOTE + %% Making those too small will lead to inability to accept connections. + recbuf => 2048, + sndbuf => 2048, + buffer => 2048, reuseaddr => true }.