From b3875624ba409160da6ad9292b5ec1e1ec5f2bef Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 1 Jun 2012 15:33:43 +0200 Subject: Minor fixed to UDP transport. Signed-off-by: Martin Sustrik --- tests/pubsub_udp.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/pubsub_udp.cpp') diff --git a/tests/pubsub_udp.cpp b/tests/pubsub_udp.cpp index e981457..ff2b08b 100644 --- a/tests/pubsub_udp.cpp +++ b/tests/pubsub_udp.cpp @@ -37,14 +37,12 @@ int XS_TEST_MAIN () assert (rc != -1); rc = xs_setsockopt (sub, XS_SUBSCRIBE, "", 0); assert (rc == 0); + + // Just in case there's an delay in lower parts of the network stack. + sleep (1); const char *content = "12345678ABCDEFGH12345678abcdefgh"; - // TODO: Due to a core bug, the first message on a PUB/SUB socket - // is always lost. For now just send a dummy message. - rc = xs_send (pub, "", 0, 0); - assert (rc == 0); - // Send a message with two identical parts. rc = xs_send (pub, content, 32, XS_SNDMORE); assert (rc == 32); -- cgit v1.2.3