[zeromq-dev] Need to PUB / REQ from multiple threads

Gaspard Bucher gaspard at teti.ch
Tue Jan 11 02:28:32 CET 2011


The server is not sending a response because it does not receive the
value... I changed for PUSH/PULL sockets and the problem is gone.

Is it possible fore REQ/REP sockets to loose packets ?

The problem is totally reproducible: REQ/REP hangs after some time,
PUSH/PULL never hangs.

Gaspard

PS: using 2.1.0

On Mon, Jan 10, 2011 at 9:19 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> On 01/09/2011 10:32 PM, Gaspard Bucher wrote:
>
>  ======= Receiving code (in another process) :
>>
>>     zmq_msg_t msg;
>>     zmq_msg_init(&msg);
>>
>>
>>     { // unlock worker
>>       ScopedUnlock unlock(worker_);
>>
>>       if (zmq_recv(socket_, &msg, 0)) { // <<<<< Hangs here
>>         zmq_msg_close(&msg);
>>         throw_recv_error(errno);
>>       }
>>     }
>>
>> Any idea on what could cause these dropped messages ?
>>
>
> Looks like you server is not sending a response.
>
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110111/53308ea7/attachment.htm>


More information about the zeromq-dev mailing list