cppzmq
cppzmq copied to clipboard
Sporadic issue of response not received after request sent using REQ socket
I am using a java server application (developed using JeroMQ) as well as C++ client(developed using libzmq). here server using REP socket and Client using REQ socket. as per my understanding irrespective of server available or not , Client can send message using lipzmq, which will be delivered when server comes up. so from client side first one message will be sent and waits indefinitely. i waited for around 2 hours and started Server. i expected that server will receive the message from client which was sent 2 hours back and will reply to Client so that client will start sending other messages . but server did not receive the message , hence client gets blocked indefinitely. from client side message sent successfully. is there any chance that message might loss, by the way i am using TCP as transport protocol both server and client on same pc itself. timely help required.
Please provide a minimal example that reproduces the problem.