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
72705454
Commit
72705454
authored
Feb 19, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't check for identity, if the connection is anonymous
parent
aff1f662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
session.cpp
src/session.cpp
+9
-3
No files found.
src/session.cpp
View file @
72705454
...
@@ -198,9 +198,15 @@ void zmq::session_t::process_attach (i_engine *engine_,
...
@@ -198,9 +198,15 @@ void zmq::session_t::process_attach (i_engine *engine_,
{
{
if
(
!
peer_identity
.
empty
())
{
if
(
!
peer_identity
.
empty
())
{
// If we already know the peer name do nothing, just check whether
// If both IDs are temporary, no checking is needed.
// it haven't changed.
// TODO: Old ID should be reused in this case...
zmq_assert
(
peer_identity
==
peer_identity_
);
if
(
peer_identity
.
empty
()
||
peer_identity
[
0
]
!=
0
||
peer_identity_
.
empty
()
||
peer_identity_
[
0
]
!=
0
)
{
// If we already know the peer name do nothing, just check whether
// it haven't changed.
zmq_assert
(
peer_identity
==
peer_identity_
);
}
}
}
else
if
(
!
peer_identity_
.
empty
())
{
else
if
(
!
peer_identity_
.
empty
())
{
...
...
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