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
bba4a937
Commit
bba4a937
authored
Jul 14, 2017
by
Luca Boccassi
Committed by
GitHub
Jul 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2622 from msune/master
Fix ROUTER's xhas_out() in MANDATORY mode
parents
30ab0ed8
b7b89a8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
router.cpp
src/router.cpp
+13
-4
No files found.
src/router.cpp
View file @
bba4a937
...
...
@@ -423,10 +423,19 @@ bool zmq::router_t::xhas_in ()
bool
zmq
::
router_t
::
xhas_out
()
{
// In theory, ROUTER socket is always ready for writing. Whether actual
// attempt to write succeeds depends on which pipe the message is going
// to be routed to.
return
true
;
// In theory, ROUTER socket is always ready for writing (except when
// MANDATORY is set). Whether actual attempt to write succeeds depends
// on whitch pipe the message is going to be routed to.
if
(
!
mandatory
)
return
true
;
bool
has_out
=
false
;
outpipes_t
::
iterator
it
;
for
(
it
=
outpipes
.
begin
();
it
!=
outpipes
.
end
();
++
it
)
has_out
|=
it
->
second
.
pipe
->
check_hwm
();
return
has_out
;
}
zmq
::
blob_t
zmq
::
router_t
::
get_credential
()
const
...
...
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