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
7b6e310b
Commit
7b6e310b
authored
Nov 07, 2014
by
Constantin Rack
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1248 from hintjens/master
Problem: default LINGER value is insane
parents
661bccb5
7781375a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
zmq_ctx_term.txt
doc/zmq_ctx_term.txt
+0
-9
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+2
-2
options.cpp
src/options.cpp
+1
-1
No files found.
doc/zmq_ctx_term.txt
View file @
7b6e310b
...
@@ -39,15 +39,6 @@ option in linkzmq:zmq_setsockopt[3].
...
@@ -39,15 +39,6 @@ option in linkzmq:zmq_setsockopt[3].
This function replaces the deprecated function linkzmq:zmq_term[3].
This function replaces the deprecated function linkzmq:zmq_term[3].
WARNING
-------
As _ZMQ_LINGER_ defaults to "infinite", by default this function will block
indefinitely if there are any pending connects or sends. We strongly
recommend to (a) set _ZMQ_LINGER_ to zero on all sockets and (b) close all
sockets, before calling this function.
RETURN VALUE
RETURN VALUE
------------
------------
The _zmq_ctx_term()_ function shall return zero if successful. Otherwise
The _zmq_ctx_term()_ function shall return zero if successful. Otherwise
...
...
doc/zmq_setsockopt.txt
View file @
7b6e310b
...
@@ -306,7 +306,7 @@ linkzmq:zmq_disconnect[3] or closed with linkzmq:zmq_close[3], and further
...
@@ -306,7 +306,7 @@ linkzmq:zmq_disconnect[3] or closed with linkzmq:zmq_close[3], and further
affects the termination of the socket's context with linkzmq:zmq_term[3]. The
affects the termination of the socket's context with linkzmq:zmq_term[3]. The
following outlines the different behaviours:
following outlines the different behaviours:
*
The default
value of '-1' specifies an infinite linger period. Pending
*
A
value of '-1' specifies an infinite linger period. Pending
messages shall not be discarded after a call to _zmq_disconnect()_ or
messages shall not be discarded after a call to _zmq_disconnect()_ or
_zmq_close()_; attempting to terminate the socket's context with _zmq_term()_
_zmq_close()_; attempting to terminate the socket's context with _zmq_term()_
shall block until all pending messages have been sent to a peer.
shall block until all pending messages have been sent to a peer.
...
@@ -323,7 +323,7 @@ following outlines the different behaviours:
...
@@ -323,7 +323,7 @@ following outlines the different behaviours:
[horizontal]
[horizontal]
Option value type:: int
Option value type:: int
Option value unit:: milliseconds
Option value unit:: milliseconds
Default value::
-1 (infinite
)
Default value::
2000 (two seconds
)
Applicable socket types:: all
Applicable socket types:: all
...
...
src/options.cpp
View file @
7b6e310b
...
@@ -35,7 +35,7 @@ zmq::options_t::options_t () :
...
@@ -35,7 +35,7 @@ zmq::options_t::options_t () :
rcvbuf
(
0
),
rcvbuf
(
0
),
tos
(
0
),
tos
(
0
),
type
(
-
1
),
type
(
-
1
),
linger
(
-
1
),
linger
(
2000
),
reconnect_ivl
(
100
),
reconnect_ivl
(
100
),
reconnect_ivl_max
(
0
),
reconnect_ivl_max
(
0
),
backlog
(
100
),
backlog
(
100
),
...
...
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