The server code is available at:
https://gist.github.com/3972502

The server code does not work as posted, but does work with the sleep commented 
out. 

The client code comes straight from the zeromq guide. 

Regards,
Dave. 

On 29 Oct 2012, at 08:22, Chuck Remes <li...@chuckremes.com> wrote:

> Give us a link (use pastie.org, gist.github.com, etc) of the *exact same* 
> code you are compiling and running. We need to see what you are doing.
> 
> cr
> 
> On Oct 29, 2012, at 3:18 AM, Ineil wrote:
> 
>> I have recently started to evaluate 0MQ, and as part of this evaluation I 
>> was trying the Pub/Sub example (Weather update client & server) from the 
>> guide. I compiled the C++ version and everything appeared to work fine.
>> 
>> I then tried updating the server, to slow down its rate of transmission. I 
>> added a sleep(1) (I also tried nanosleep to give shorter delays) to the end 
>> of the main loop and this stopped things working. 
>> 
>> The server continues to go slowly round the main loop, but clients no longer 
>> receive messages. A WireShark trace shows that clients still connect and 
>> exchange a number of messages with the server, but the clients are never 
>> sent the weather update messages. 
>> 
>> I assume it is reasonable to put a delay in the main loop, hence I am 
>> assuming there is a problem somewhere here. 
>> 
>> If it is relevant, I have zeromq version 3.2.1 compiled and running on 
>> Ubuntu 12.04.
>> 
>> Any ideas. 
>> Thanks,
>> Dave.
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev@lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to