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
Post a Comment