mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-25 07:41:10 +01:00
Mention limitation of the device implementation
+ fix whitespace errors + drop some unnecessary parens
This commit is contained in:
parent
e8b701cb92
commit
a2c3772531
@ -35,9 +35,12 @@ int zmq::device (class socket_base_t *insocket_,
|
||||
if (rc != 0)
|
||||
return -1;
|
||||
|
||||
// The algorithm below assumes ratio of request and replies processed
|
||||
// The algorithm below assumes ratio of requests and replies processed
|
||||
// under full load to be 1:1.
|
||||
|
||||
// TODO: The current implementation drops messages when
|
||||
// any of the pipes becomes full.
|
||||
|
||||
int more;
|
||||
size_t moresz;
|
||||
zmq_pollitem_t items [] = {
|
||||
@ -57,7 +60,7 @@ int zmq::device (class socket_base_t *insocket_,
|
||||
if (unlikely (rc < 0))
|
||||
return -1;
|
||||
|
||||
moresz = sizeof (more);
|
||||
moresz = sizeof more;
|
||||
rc = insocket_->getsockopt (ZMQ_RCVMORE, &more, &moresz);
|
||||
if (unlikely (rc < 0))
|
||||
return -1;
|
||||
@ -76,7 +79,7 @@ int zmq::device (class socket_base_t *insocket_,
|
||||
if (unlikely (rc < 0))
|
||||
return -1;
|
||||
|
||||
moresz = sizeof (more);
|
||||
moresz = sizeof more;
|
||||
rc = outsocket_->getsockopt (ZMQ_RCVMORE, &more, &moresz);
|
||||
if (unlikely (rc < 0))
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user