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
4b832ea3
Commit
4b832ea3
authored
Oct 31, 2011
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert the early dropping of request and replies for disconnected clients
Signed-off-by:
Martin Sustrik
<
sustrik@250bpm.com
>
parent
9227c389
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
xrep.cpp
src/xrep.cpp
+3
-1
xreq.cpp
src/xreq.cpp
+3
-1
No files found.
src/xrep.cpp
View file @
4b832ea3
...
...
@@ -35,9 +35,11 @@ zmq::xrep_t::xrep_t (class ctx_t *parent_, uint32_t tid_) :
{
options
.
type
=
ZMQ_XREP
;
// TODO: Uncomment the following line when XREP will become true XREP
// rather than generic router socket.
// If peer disconnect there's noone to send reply to anyway. We can drop
// all the outstanding requests from that peer.
options
.
delay_on_disconnect
=
false
;
//
options.delay_on_disconnect = false;
prefetched_msg
.
init
();
}
...
...
src/xreq.cpp
View file @
4b832ea3
...
...
@@ -27,9 +27,11 @@ zmq::xreq_t::xreq_t (class ctx_t *parent_, uint32_t tid_) :
{
options
.
type
=
ZMQ_XREQ
;
// TODO: Uncomment the following line when XREQ will become true XREQ
// rather than generic dealer socket.
// If the socket is closing we can drop all the outbound requests. There'll
// be noone to receive the replies anyway.
options
.
delay_on_close
=
false
;
//
options.delay_on_close = false;
}
zmq
::
xreq_t
::~
xreq_t
()
...
...
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