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
c9e86acf
Commit
c9e86acf
authored
Jun 04, 2014
by
Richard Newton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up hwm's before we connect the other end of the pipe in ctx_t::connect_inproc_sockets
parent
764a3495
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
ctx.cpp
src/ctx.cpp
+13
-12
No files found.
src/ctx.cpp
View file @
c9e86acf
...
...
@@ -454,15 +454,6 @@ void zmq::ctx_t::connect_inproc_sockets (zmq::socket_base_t *bind_socket_,
errno_assert
(
rc
==
0
);
}
if
(
side_
==
bind_side
)
{
command_t
cmd
;
cmd
.
type
=
command_t
::
bind
;
cmd
.
args
.
bind
.
pipe
=
pending_connection_
.
bind_pipe
;
bind_socket_
->
process_command
(
cmd
);
bind_socket_
->
send_inproc_connected
(
pending_connection_
.
endpoint
.
socket
);
}
else
pending_connection_
.
connect_pipe
->
send_bind
(
bind_socket_
,
pending_connection_
.
bind_pipe
,
false
);
int
sndhwm
=
0
;
if
(
pending_connection_
.
endpoint
.
options
.
sndhwm
!=
0
&&
bind_options
.
rcvhwm
!=
0
)
...
...
@@ -479,9 +470,19 @@ void zmq::ctx_t::connect_inproc_sockets (zmq::socket_base_t *bind_socket_,
pending_connection_
.
endpoint
.
options
.
type
==
ZMQ_PUB
||
pending_connection_
.
endpoint
.
options
.
type
==
ZMQ_SUB
);
int
hwms
[
2
]
=
{
conflate
?
-
1
:
sndhwm
,
conflate
?
-
1
:
rcvhwm
};
pending_connection_
.
connect_pipe
->
set_hwms
(
hwms
[
1
],
hwms
[
0
]);
pending_connection_
.
bind_pipe
->
set_hwms
(
hwms
[
0
],
hwms
[
1
]);
int
hwms
[
2
]
=
{
conflate
?
-
1
:
sndhwm
,
conflate
?
-
1
:
rcvhwm
};
pending_connection_
.
connect_pipe
->
set_hwms
(
hwms
[
1
],
hwms
[
0
]);
pending_connection_
.
bind_pipe
->
set_hwms
(
hwms
[
0
],
hwms
[
1
]);
if
(
side_
==
bind_side
)
{
command_t
cmd
;
cmd
.
type
=
command_t
::
bind
;
cmd
.
args
.
bind
.
pipe
=
pending_connection_
.
bind_pipe
;
bind_socket_
->
process_command
(
cmd
);
bind_socket_
->
send_inproc_connected
(
pending_connection_
.
endpoint
.
socket
);
}
else
pending_connection_
.
connect_pipe
->
send_bind
(
bind_socket_
,
pending_connection_
.
bind_pipe
,
false
);
if
(
pending_connection_
.
endpoint
.
options
.
recv_identity
)
{
msg_t
id
;
...
...
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