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
10758121
Commit
10758121
authored
Mar 20, 2012
by
Emmanuel Taurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable reconnection option
Add value -1 to the ZMQ_RECONNECT_IVL to disable the reconnection algorithm
parent
8665f9a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
zmq_getsockopt.txt
doc/zmq_getsockopt.txt
+1
-1
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+1
-1
options.cpp
src/options.cpp
+1
-1
session_base.cpp
src/session_base.cpp
+2
-1
No files found.
doc/zmq_getsockopt.txt
View file @
10758121
...
...
@@ -223,7 +223,7 @@ ZMQ_RECONNECT_IVL: Retrieve reconnection interval
The 'ZMQ_RECONNECT_IVL' option shall retrieve the initial reconnection interval
for the specified 'socket'. The reconnection interval is the period 0MQ shall
wait between attempts to reconnect disconnected peers when using
connection-oriented transports.
connection-oriented transports.
The value -1 means no reconnection.
NOTE: The reconnection interval may be randomized by 0MQ to prevent
reconnection storms in topologies with a large number of peers per socket.
...
...
doc/zmq_setsockopt.txt
View file @
10758121
...
...
@@ -232,7 +232,7 @@ ZMQ_RECONNECT_IVL: Set reconnection interval
The 'ZMQ_RECONNECT_IVL' option shall set the initial reconnection interval for
the specified 'socket'. The reconnection interval is the period 0MQ
shall wait between attempts to reconnect disconnected peers when using
connection-oriented transports.
connection-oriented transports.
The value -1 means no reconnection.
NOTE: The reconnection interval may be randomized by 0MQ to prevent
reconnection storms in topologies with a large number of peers per socket.
...
...
src/options.cpp
View file @
10758121
...
...
@@ -140,7 +140,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
errno
=
EINVAL
;
return
-
1
;
}
if
(
*
((
int
*
)
optval_
)
<
0
)
{
if
(
*
((
int
*
)
optval_
)
<
-
1
)
{
errno
=
EINVAL
;
return
-
1
;
}
...
...
src/session_base.cpp
View file @
10758121
...
...
@@ -375,7 +375,8 @@ void zmq::session_base_t::detached ()
}
// Reconnect.
start_connecting
(
true
);
if
(
options
.
reconnect_ivl
!=
-
1
)
start_connecting
(
true
);
// For subscriber sockets we hiccup the inbound pipe, which will cause
// the socket object to resend all the subscriptions.
...
...
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