Commit f4a07b39 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #545 from hurtonm/master

Interoperate with higher versions of ZMTP protocol
parents c5721f99 e52c4362
......@@ -478,9 +478,7 @@ bool zmq::stream_engine_t::handshake ()
in_batch_size, options.maxmsgsize);
alloc_assert (decoder);
}
else
if (greeting_recv [revision_pos] == ZMTP_2_0
|| greeting_recv [revision_pos] == ZMTP_2_1) {
else {
encoder = new (std::nothrow) v2_encoder_t (out_batch_size);
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