Commit e52c4362 authored by Martin Hurton's avatar Martin Hurton

Interoperate with higher versions of ZMTP protocol

parent c5721f99
...@@ -478,9 +478,7 @@ bool zmq::stream_engine_t::handshake () ...@@ -478,9 +478,7 @@ bool zmq::stream_engine_t::handshake ()
in_batch_size, options.maxmsgsize); in_batch_size, options.maxmsgsize);
alloc_assert (decoder); alloc_assert (decoder);
} }
else else {
if (greeting_recv [revision_pos] == ZMTP_2_0
|| greeting_recv [revision_pos] == ZMTP_2_1) {
encoder = new (std::nothrow) v2_encoder_t (out_batch_size); encoder = new (std::nothrow) v2_encoder_t (out_batch_size);
alloc_assert (encoder); alloc_assert (encoder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment