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
6badd204
Commit
6badd204
authored
Mar 03, 2010
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement flow control for ZMQ_REP sockets
parent
923609b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rep.cpp
src/rep.cpp
+7
-7
No files found.
src/rep.cpp
View file @
6badd204
...
...
@@ -146,7 +146,6 @@ void zmq::rep_t::xrevive (class reader_t *pipe_)
void
zmq
::
rep_t
::
xrevive
(
class
writer_t
*
pipe_
)
{
zmq_not_implemented
();
}
int
zmq
::
rep_t
::
xsetsockopt
(
int
option_
,
const
void
*
optval_
,
...
...
@@ -163,16 +162,17 @@ int zmq::rep_t::xsend (zmq_msg_t *msg_, int flags_)
return
-
1
;
}
// TODO: Implement this once queue limits are in-place. If the reply
// overloads the buffer, connection should be torn down.
zmq_assert
(
reply_pipe
->
check_write
());
// Push message to the selected pipe. If requester have disconnected
// in the meantime, drop the reply.
if
(
reply_pipe
)
{
bool
written
=
reply_pipe
->
write
(
msg_
);
zmq_assert
(
written
);
reply_pipe
->
flush
();
if
(
written
)
reply_pipe
->
flush
();
else
// The pipe is full; just drop the reference to
// the message content.
// TODO: Tear down the underlying connection.
zmq_msg_close
(
msg_
);
}
else
{
zmq_msg_close
(
msg_
);
...
...
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