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
648e3199
Commit
648e3199
authored
Apr 25, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #325 from hurtonm/update_comment_in_device_plus_whitespace_fixes
Mention limitation of the device implementation
parents
e8b701cb
a2c37725
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
device.cpp
src/device.cpp
+6
-3
No files found.
src/device.cpp
View file @
648e3199
...
...
@@ -35,9 +35,12 @@ int zmq::device (class socket_base_t *insocket_,
if
(
rc
!=
0
)
return
-
1
;
// The algorithm below assumes ratio of request and replies processed
// The algorithm below assumes ratio of request
s
and replies processed
// under full load to be 1:1.
// TODO: The current implementation drops messages when
// any of the pipes becomes full.
int
more
;
size_t
moresz
;
zmq_pollitem_t
items
[]
=
{
...
...
@@ -57,7 +60,7 @@ int zmq::device (class socket_base_t *insocket_,
if
(
unlikely
(
rc
<
0
))
return
-
1
;
moresz
=
sizeof
(
more
)
;
moresz
=
sizeof
more
;
rc
=
insocket_
->
getsockopt
(
ZMQ_RCVMORE
,
&
more
,
&
moresz
);
if
(
unlikely
(
rc
<
0
))
return
-
1
;
...
...
@@ -76,7 +79,7 @@ int zmq::device (class socket_base_t *insocket_,
if
(
unlikely
(
rc
<
0
))
return
-
1
;
moresz
=
sizeof
(
more
)
;
moresz
=
sizeof
more
;
rc
=
outsocket_
->
getsockopt
(
ZMQ_RCVMORE
,
&
more
,
&
moresz
);
if
(
unlikely
(
rc
<
0
))
return
-
1
;
...
...
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