[zeromq-dev] Pub/Sub problem using sleep

2012-10-29 Thread Ineil
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 a

Re: [zeromq-dev] Pub/Sub problem using sleep

2012-10-29 Thread Chuck Remes
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 exa

Re: [zeromq-dev] Pub/Sub problem using sleep

2012-10-29 Thread Ineil
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 wrote: > Give us a link (use pas

[zeromq-dev] Pub/Sub problem using sleep

2012-10-29 Thread Ineil
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

[zeromq-dev] zmq_abort called from clean_pipes - is this a bug?

2012-10-29 Thread Stephen Lord
I managed to make the zeromq library (3.2.1-rc2) crash due to a programming error from outside the library. I know someone is going to ask for a small test case which may take me a little while to come up with, so for now a problem description. The library crashed like this: #0 0x00304b63

Re: [zeromq-dev] epgm performance numbers

2012-10-29 Thread Rohan Bedarkar
Steve, I found something interesting. ZMQ roundtrip over epgm drops suddenly at one point.. Thoughts? .. ... 88: 143us 89: 144us 90: 145us 91: 146us 92: 147us 93: 141us 94: 158us 95: 879us <--- 96: 4972us 97: 4966us 98: 4969us 99: 4969us 100: 5049us 101: 5049us 102: 504

[zeromq-dev] CTRL+C

2012-10-29 Thread Balázs Varga
Hi, I have difficulties implementing a proper CTRL+C handling in my delphi binding. In the guide I read that : 'If your code is blocking in zmq_msg_recv(3) , zmq_poll(3) , or zmq_msg_send(3)

Re: [zeromq-dev] epgm performance numbers

2012-10-29 Thread Rohan Bedarkar
Steve Throttling definitely helps. I reduced the HWM to 200 and added a 200 ms sleep every 50 samples and that brought down average round-trip times massively... So why is throttling helping?  -              Performance Report            

Re: [zeromq-dev] Pub/Sub problem using sleep

2012-10-29 Thread Naveen Palli
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

[zeromq-dev] troubleshooting

2012-10-29 Thread Bob SSiem
Hello! First of all Thanks for the fantastic library! It's been a pleasure to use and I'm thinking about releasing my "zmq server builder" ruby code if I can get it more stable. Think Rack for zmq with some goodies like hmac msg auth and throttling. Anyway on to my dilemma. I'm working on a ne

Re: [zeromq-dev] epgm performance numbers

2012-10-29 Thread Bennie Kloosteman
Ethernet contention ? It is broadcasting On Tue, Oct 30, 2012 at 3:19 AM, Rohan Bedarkar wrote: > Steve, > > I found something interesting. ZMQ roundtrip over epgm drops suddenly at > one point.. Thoughts? > > .. > ... > 88: 143us > 89: 144us > 90: 145us > 91: 146us > 92: 147us > 93

Re: [zeromq-dev] epgm performance numbers

2012-10-29 Thread Rohan Bedarkar
Happens only for epgm and not for TCP. Why would that be? Sent from my iPhone On Oct 29, 2012, at 9:14 PM, Bennie Kloosteman wrote: > Ethernet contention ? It is broadcasting > > On Tue, Oct 30, 2012 at 3:19 AM, Rohan Bedarkar wrote: >> Steve, >> >> I found something interesting. ZMQ round

Re: [zeromq-dev] epgm performance numbers

2012-10-29 Thread Bennie Kloosteman
Im not saying it is broad casting as i dont know your topology and load... epgm is broadcast by switches , tcp is not. , only hubs. Ben On Tue, Oct 30, 2012 at 11:10 AM, Rohan Bedarkar wrote: > Happens only for epgm and not for TCP. Why would that be? > > Sent from my iPhone > > On Oct 29, 20

Re: [zeromq-dev] (3.x) non-zmq tcp clients support for router socket

2012-10-29 Thread Pieter Hintjens
On Wed, Oct 24, 2012 at 8:23 AM, Hardeep Singh wrote: > I am using zmq to manage my telnet client connections. I have made some > modifications to 3.x version to support this. I've merged the patch, which looks clean and builds, and have some questions. Mostly, it would be good to have some exp

Re: [zeromq-dev] zmq_abort called from clean_pipes - is this a bug?

2012-10-29 Thread Pieter Hintjens
On Mon, Oct 29, 2012 at 7:07 PM, Stephen Lord wrote: > I managed to make the zeromq library (3.2.1-rc2) crash due to a programming > error from outside the library. > > I know someone is going to ask for a small test case which may take me a > little > while to come up with, so for now a problem

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Pieter Hintjens
On Mon, Oct 29, 2012 at 9:06 PM, Balázs Varga wrote: > How is it solved in other bindings? I think it can be a windows issue, but > not sure, haven't tried it on other OS yet. Libzmq doesn't install any handler, indeed. So a signal may interrupt the blocking call, or may kill the process. The te

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Balázs Varga
On Oct 30, 2012 6:09 AM, "Pieter Hintjens" wrote: > > On Mon, Oct 29, 2012 at 9:06 PM, Balázs Varga wrote: > > > How is it solved in other bindings? I think it can be a windows issue, but > > not sure, haven't tried it on other OS yet. > I just tried pyzmq's interupt example,which doesn't work o

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Pieter Hintjens
On Tue, Oct 30, 2012 at 6:31 AM, Balázs Varga wrote: > I know this link,installing a handler is not a problem,make the blocing > calls exit is the problem. Right. The problem for libzmq afair is twofold: one, the OS has to interrupt the blocking call cleanly, which e.g. means in C not allowing S

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Daisuke Maki
I thought windows doesn't "handle" SIGINT the way us in unix land expect? http://msdn.microsoft.com/en-us/library/xdkz3x12(v=vs.110).aspx --d 2012/10/30 Pieter Hintjens : > On Tue, Oct 30, 2012 at 6:31 AM, Balázs Varga wrote: > >> I know this link,installing a handler is not a problem,make the

Re: [zeromq-dev] CTRL+C

2012-10-29 Thread Pieter Hintjens
On Tue, Oct 30, 2012 at 6:50 AM, Daisuke Maki wrote: > I thought windows doesn't "handle" SIGINT the way us in unix land expect? > http://msdn.microsoft.com/en-us/library/xdkz3x12(v=vs.110).aspx In plain C, it works pretty much like POSIX when it comes to interrupting blocking calls and trapping

[zeromq-dev] porting to VxWorks

2012-10-29 Thread Philip Nguyen
Hi there, Any suggestions how to port zmq to vxworks? Thanks ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev