From d5ed7f125642b412a7a91baa585dc934ccd185e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sat, 15 Jan 2022 06:24:37 +0100 Subject: [PATCH] test: test with maximum recvmmsg buffer (#3419) The maximum numbers receivable by the recvmmsg call is defined in src/unix/udp.c as UV__MMSG_MAXWIDTH with the current value being 20. Align the size of the receive buffer in the mmsg test to receive the maximum number of UDP packets in the test. --- test/test-udp-mmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-udp-mmsg.c b/test/test-udp-mmsg.c index fb241151..401c4f33 100644 --- a/test/test-udp-mmsg.c +++ b/test/test-udp-mmsg.c @@ -29,9 +29,9 @@ #define CHECK_HANDLE(handle) \ ASSERT((uv_udp_t*)(handle) == &recver || (uv_udp_t*)(handle) == &sender) -#define BUFFER_MULTIPLIER 4 +#define BUFFER_MULTIPLIER 20 #define MAX_DGRAM_SIZE (64 * 1024) -#define NUM_SENDS 8 +#define NUM_SENDS 40 #define EXPECTED_MMSG_ALLOCS (NUM_SENDS / BUFFER_MULTIPLIER) static uv_udp_t recver;