summaryrefslogtreecommitdiff
path: root/src/queue.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-04-29 17:20:23 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-04-29 17:20:23 +0200
commitc193fd146661b39027c5e3fa0776dcdf8c6af5e2 (patch)
tree0ec001869a7e6519cc1b910de0b26c46308eba96 /src/queue.cpp
parent7cb076e56a18cb76c49f17bd34bc73c11e01b705 (diff)
lock-free polling removed; ZMQ_POLL flag removed
Diffstat (limited to 'src/queue.cpp')
-rw-r--r--src/queue.cpp5
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) {