>"No. Your code thinks it's in the last iteration and sends without SNDMORE - but then the vector grows and it tries to add another frame afterwards and fails."
Christian, absolutely brilliant how you zeroed in on the problem. Thanks, your comments made me think a little differently. The vector is growing as the server is composing messages. I fixed the error by breaking the 'for' loop which composes the multipart message whenever the 'end' iterator is detected and the final part is sent; so preventing any extra message frame with the incorrect ZMQ_SNDMORE flag. Your suggestion of only reading the end() iterator once for each message composition loop would also give a very tidy result I think. Thanks again, Riskybiz.
_______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev