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
343ec622
Commit
343ec622
authored
Sep 27, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #431 from ipechorin/master
Forward-port fix for LIBZMQ-211
parents
5b83fe77
725f141f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
rep.cpp
src/rep.cpp
+18
-6
No files found.
src/rep.cpp
View file @
343ec622
...
...
@@ -72,12 +72,24 @@ int zmq::rep_t::xrecv (msg_t *msg_, int flags_)
int
rc
=
router_t
::
xrecv
(
msg_
,
flags_
);
if
(
rc
!=
0
)
return
rc
;
zmq_assert
(
msg_
->
flags
()
&
msg_t
::
more
);
bool
bottom
=
(
msg_
->
size
()
==
0
);
rc
=
router_t
::
xsend
(
msg_
,
flags_
);
errno_assert
(
rc
==
0
);
if
(
bottom
)
break
;
if
((
msg_
->
flags
()
&
msg_t
::
more
))
{
// Empty message part delimits the traceback stack.
bool
bottom
=
(
msg_
->
size
()
==
0
);
// Push it to the reply pipe.
rc
=
router_t
::
xsend
(
msg_
,
flags_
);
errno_assert
(
rc
==
0
);
if
(
bottom
)
break
;
}
else
{
// If the traceback stack is malformed, discard anything
// already sent to pipe (we're at end of invalid message).
rc
=
router_t
::
rollback
();
errno_assert
(
rc
==
0
);
}
}
request_begins
=
false
;
}
...
...
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