diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-03-02 09:00:36 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-03-02 09:00:36 +0100 |
commit | 5fcef1cac4d9faf0279b83ba48899b0e17b8e2d5 (patch) | |
tree | cce0cb9223e29ba38c909cccaac828bc59f7557a /src/zmq_engine.cpp | |
parent | 4c7446211a02937f3e2522aece163d417b4ad0b9 (diff) |
ZMQ_MAXMSGSIZE option added
The new option allows user to guard against peers sending
oversized messages. Connection to peer sending oversized message
is dropped.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/zmq_engine.cpp')
-rw-r--r-- | src/zmq_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq_engine.cpp b/src/zmq_engine.cpp index c51b7ad..5c7af3a 100644 --- a/src/zmq_engine.cpp +++ b/src/zmq_engine.cpp @@ -35,7 +35,7 @@ zmq::zmq_engine_t::zmq_engine_t (fd_t fd_, const options_t &options_) : inpos (NULL), insize (0), - decoder (in_batch_size), + decoder (in_batch_size, options_.maxmsgsize), outpos (NULL), outsize (0), encoder (out_batch_size), |