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
5adcb835
Commit
5adcb835
authored
Jan 09, 2017
by
laplaceyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: set hwm after connect lead to infinite hwm
parent
77e1792c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
pipe.cpp
src/pipe.cpp
+7
-2
pipe.hpp
src/pipe.hpp
+3
-0
socket_base.cpp
src/socket_base.cpp
+1
-0
No files found.
src/pipe.cpp
View file @
5adcb835
...
...
@@ -83,8 +83,8 @@ zmq::pipe_t::pipe_t (object_t *parent_, upipe_t *inpipe_, upipe_t *outpipe_,
out_active
(
true
),
hwm
(
outhwm_
),
lwm
(
compute_lwm
(
inhwm_
)),
inhwmboost
(
0
),
outhwmboost
(
0
),
inhwmboost
(
1
),
outhwmboost
(
1
),
msgs_read
(
0
),
msgs_written
(
0
),
peers_msgs_read
(
0
),
...
...
@@ -522,6 +522,11 @@ void zmq::pipe_t::set_hwms (int inhwm_, int outhwm_)
hwm
=
out
;
}
void
zmq
::
pipe_t
::
set_peer_hwms
(
int
inhwm_
,
int
outhwm_
)
{
peer
->
set_hwms
(
inhwm_
,
outhwm_
);
}
void
zmq
::
pipe_t
::
set_hwms_boost
(
int
inhwmboost_
,
int
outhwmboost_
)
{
inhwmboost
=
inhwmboost_
;
...
...
src/pipe.hpp
View file @
5adcb835
...
...
@@ -133,6 +133,9 @@ namespace zmq
// Set the high water marks.
void
set_hwms
(
int
inhwm_
,
int
outhwm_
);
// Set the high water marks for peer.
void
set_peer_hwms
(
int
inhwm_
,
int
outhwm_
);
// Set the boost to high water marks, used by inproc sockets so total hwm are sum of connect and bind sockets watermarks
void
set_hwms_boost
(
int
inhwmboost_
,
int
outhwmboost_
);
...
...
src/socket_base.cpp
View file @
5adcb835
...
...
@@ -1414,6 +1414,7 @@ void zmq::socket_base_t::update_pipe_options(int option_)
for
(
pipes_t
::
size_type
i
=
0
;
i
!=
pipes
.
size
();
++
i
)
{
pipes
[
i
]
->
set_hwms
(
options
.
rcvhwm
,
options
.
sndhwm
);
pipes
[
i
]
->
set_peer_hwms
(
options
.
sndhwm
,
options
.
rcvhwm
);
}
}
...
...
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