From 61e476ec89f9a2d1723d4665c4e882399730f639 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Wed, 6 Feb 2019 09:09:14 -0500 Subject: [PATCH] Problem: MAX_SOCKET_STRING is too short for ipc wildcard binds Solution: increase size to 256 --- tests/testutil.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testutil.hpp b/tests/testutil.hpp index 42b19372..69b7fe54 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -43,7 +43,9 @@ // settled. Tested to work reliably at 1 msec on a fast PC. #define SETTLE_TIME 300 // In msec // Commonly used buffer size for ZMQ_LAST_ENDPOINT -#define MAX_SOCKET_STRING sizeof ("tcp://[::ffff:127.127.127.127]:65536") +// this used to be sizeof ("tcp://[::ffff:127.127.127.127]:65536"), but this +// may be too short for ipc wildcard binds, e.g. +#define MAX_SOCKET_STRING 256 // We need to test codepaths with non-random bind ports. List them here to // keep them unique, to allow parallel test runs.