publish - ZMQ Pub/Sub returns ETERM -


i have 1 zmq_pub socket in 1 process, connected zmq_sub socket in process, it's server. thing need publish many messages can. i'm sure it's connected first.

i'm running load test, firing thousands of identical messages pub. @ other side, i'm polling zmq_sub socket, , receiving messages when needed.

the weird thing every 1000 messages received, zmq_poll returns eterm 3 times. can't figure out.

-- solution in comments bellow.

turns out misinterpreting return code of poll, recv , send functions. returns -1 everytime gets signal, , lot of eintr, that's fine, normal. can ignore them , repeat trying do. in polling, can continue. if came send or recv, can keep trying send or recv long errno == eintr. problem solved


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -