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
82999f2d
Commit
82999f2d
authored
Nov 09, 2012
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't forward identities to DEALER sockets
parent
ec082414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
dealer.cpp
src/dealer.cpp
+1
-11
No files found.
src/dealer.cpp
View file @
82999f2d
...
@@ -35,8 +35,6 @@ zmq::dealer_t::dealer_t (class ctx_t *parent_, uint32_t tid_, int sid_) :
...
@@ -35,8 +35,6 @@ zmq::dealer_t::dealer_t (class ctx_t *parent_, uint32_t tid_, int sid_) :
// be noone to receive the replies anyway.
// be noone to receive the replies anyway.
// options.delay_on_close = false;
// options.delay_on_close = false;
options
.
recv_identity
=
true
;
prefetched_msg
.
init
();
prefetched_msg
.
init
();
}
}
...
@@ -73,15 +71,7 @@ int zmq::dealer_t::xrecv (msg_t *msg_, int flags_)
...
@@ -73,15 +71,7 @@ int zmq::dealer_t::xrecv (msg_t *msg_, int flags_)
return
0
;
return
0
;
}
}
// DEALER socket doesn't use identities. We can safely drop it and
return
fq
.
recv
(
msg_
);
while
(
true
)
{
int
rc
=
fq
.
recv
(
msg_
);
if
(
rc
!=
0
)
return
rc
;
if
(
likely
(
!
(
msg_
->
flags
()
&
msg_t
::
identity
)))
break
;
}
return
0
;
}
}
bool
zmq
::
dealer_t
::
xhas_in
()
bool
zmq
::
dealer_t
::
xhas_in
()
...
...
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