diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-06-13 10:29:20 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-06-13 10:29:20 +0200 |
commit | 7ef7f4a85a8e130c2910b6be8dc66fcde6c5a74d (patch) | |
tree | 123bd71f4904f1ae1a3432909eaa4c0de300bd22 /tests | |
parent | 28b0ef64d52bb8674d542efd5da7068371e3c2e8 (diff) |
Revert "Minor fixed to UDP transport."
This reverts commit b3875624ba409160da6ad9292b5ec1e1ec5f2bef.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pubsub_udp.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/pubsub_udp.cpp b/tests/pubsub_udp.cpp index ff2b08b..e981457 100644 --- a/tests/pubsub_udp.cpp +++ b/tests/pubsub_udp.cpp @@ -37,12 +37,14 @@ 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); |