Thank-you. That makes perfect sense now. I had not appreciated what was going on with the zipcode filtering. Dave.
On 29 Oct 2012, at 22:23, Naveen Palli <[email protected]> wrote: > The server is sending approximately 10 Million messages for the 100 that need > to be filtered on the client side [specific zipcode selected randomly among > 100,000. The client waits for 100 of them]. If you sleep 1 second in the main > server loop it will take forever. If you want to see what is going on, then > hardcode the zipcode on both the client and server side. > > Thanks, > Naveen > > On Mon, Oct 29, 2012 at 4:09 AM, Ineil <[email protected]> wrote: > 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 <[email protected]> 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 > >> [email protected] > >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > _______________________________________________ > > zeromq-dev mailing list > > [email protected] > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
