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
3ad8c611
Commit
3ad8c611
authored
Jan 01, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace fixes
parent
49a2902c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
router.cpp
src/router.cpp
+5
-8
No files found.
src/router.cpp
View file @
3ad8c611
...
...
@@ -36,7 +36,7 @@ zmq::router_t::router_t (class ctx_t *parent_, uint32_t tid_, int sid_) :
// raw_sock functionality in ROUTER is deprecated
raw_sock
(
false
),
probe_router
(
false
),
handover
(
false
)
handover
(
false
)
{
options
.
type
=
ZMQ_ROUTER
;
options
.
recv_identity
=
true
;
...
...
@@ -402,14 +402,11 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
outpipes_t
::
iterator
it
=
outpipes
.
find
(
identity
);
msg
.
close
();
if
(
it
!=
outpipes
.
end
())
{
if
(
!
handover
)
{
// Ignore peers with duplicate ID.
if
(
it
!=
outpipes
.
end
())
{
if
(
!
handover
)
// Ignore peers with duplicate ID
return
false
;
}
else
{
else
{
// We will allow the new connection to take over this
// identity. Temporarily assign a new identity to the
// existing pipe so we can terminate it asynchronously.
...
...
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