diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-04-29 17:20:23 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-04-29 17:20:23 +0200 |
commit | c193fd146661b39027c5e3fa0776dcdf8c6af5e2 (patch) | |
tree | 0ec001869a7e6519cc1b910de0b26c46308eba96 /src/queue.cpp | |
parent | 7cb076e56a18cb76c49f17bd34bc73c11e01b705 (diff) |
lock-free polling removed; ZMQ_POLL flag removed
Diffstat (limited to 'src/queue.cpp')
-rw-r--r-- | src/queue.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/queue.cpp b/src/queue.cpp index 165e360..05cd125 100644 --- a/src/queue.cpp +++ b/src/queue.cpp @@ -51,8 +51,9 @@ int zmq::queue (class socket_base_t *insocket_, errno_assert (rc > 0); // The algorithm below asumes ratio of request and replies processed - // under full load to be 1:1. The alternative would be to process - // replies first, handle request only when there are no more replies. + // under full load to be 1:1. While processing requests replies first + // is tempting it is suspectible to DoS attacks (overloading the system + // with unsolicited replies). // Receive a new request. if (items [0].revents & ZMQ_POLLIN) { |