ZMQ.poll(items, endtime - System.currentTimeMillis());
if (items[0].isReadable()) {
// Reply is [empty][sequence][OK]
reply = ZMsg.recvMsg(socket);
assert (reply.size() == 3);
reply.pop();
String sequenceStr = reply.popString();
int sequenceNbr = Integer.parseInt(sequenceStr);
if (sequenceNbr == sequence)
break;
reply.destroy();