Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
d328f90b
Commit
d328f90b
authored
Apr 02, 2019
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: inadequate recv variant used which assumes 0-terminated string
Solution: use array recv variant instead
parent
a5ee4fb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_hwm_pubsub.cpp
tests/test_hwm_pubsub.cpp
+2
-2
No files found.
tests/test_hwm_pubsub.cpp
View file @
d328f90b
...
...
@@ -138,8 +138,8 @@ int test_blocking (int send_hwm_, int msg_cnt_, const char *endpoint)
// Wait before starting TX operations till 1 subscriber has subscribed
// (in this test there's 1 subscriber only)
const
char
subscription_to_all_topics
[]
=
{
1
,
0
};
recv_
string
_expect_success
(
pub_socket
,
subscription_to_all_topics
,
0
);
const
uint8_t
subscription_to_all_topics
[]
=
{
1
};
recv_
array
_expect_success
(
pub_socket
,
subscription_to_all_topics
,
0
);
// Send until we block
int
send_count
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment