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
1fdf8f78
Commit
1fdf8f78
authored
Jul 29, 2015
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up test case
parent
146be484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
test_stream_exceeds_buffer.cpp
tests/test_stream_exceeds_buffer.cpp
+0
-2
No files found.
tests/test_stream_exceeds_buffer.cpp
View file @
1fdf8f78
...
...
@@ -58,7 +58,6 @@ int main()
rcvbytes
=
zmq_msg_recv
(
&
msg
,
zsock
,
0
);
assert
(
rcvbytes
!=-
1
);
assert
(
!
zmq_msg_more
(
&
msg
));
printf
(
"got %d bytes
\n
"
,
rcvbytes
);
}
// for this test, we only collect the first chunk
...
...
@@ -72,7 +71,6 @@ int main()
zmq_ctx_destroy
(
zctx
);
assert
(
rcvbytes
>=
4
);
printf
(
"%x %x %x %x
\n
"
,
rcvbuf
[
0
],
rcvbuf
[
1
],
rcvbuf
[
2
],
rcvbuf
[
3
]);
// notice that only the 1st byte gets corrupted
assert
(
rcvbuf
[
3
]
==
0xef
);
...
...
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