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.
This commit is contained in:
parent
e9cb18484e
commit
d5ed7f1256
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user