Re: [zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Ian Barber
Note that on mac we run into the rather small default ulimit a lot: http://zeromq.org/docs:tuning-zeromq - it could be that effecting test_shutdown_stress, hence the standard advice to increase it. Ian On Mon, Sep 2, 2013 at 11:53 PM, Matt Connolly wrote: > I'm getting intermittent failures in

[zeromq-dev] How to use the PGM

2013-09-02 Thread 仇立偉
Hi: I use the PUB-SUB pattern in my program. When I use the TCP protocol, It works fine. But I change to the PGM protocol(using the same code), I can send data, but can’t receive any data. Following are the Code //Sender Code ctx = zmq_init (1); s = zmq_socket (ctx, ZMQ_PUB);

[zeromq-dev] ZMQ_ROUTER internals

2013-09-02 Thread A. Mark
I hope I'm not asking a redundant question and I haven't the time to look at the ZMQ source code at the moment. What is the underlying search method for routing messages internally within ZMQ_ROUTER? Assuming it's a perfect hash - or at least it's some kind of hashing algo based on identity, I assu

Re: [zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Matt Connolly
I'm getting intermittent failures in the "test_shutdown_stress" test in Mac OS 10.9 Mavericks too. It seems to me that the failure has to do with the maximum number of open file descriptors (which zmq uses for internal messaging). I'm not seeing any errors in using the library so far. -Matt O

Re: [zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Lucas Hope
Hi again, Further: the homebrew formula has this notation: "zeromq: apply patch for strndup on 10.6" https://github.com/mxcl/homebrew/commit/92a033411a976e91c79e5a7fb7e01373c5c7726b#Library/Formula/zeromq.rb See also: http://braumeister.org/formula/zeromq Luke On Tue, Sep 3, 2013 at 8:47 AM,

Re: [zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Lucas Hope
Hi there, I recently did a fresh install of this version too (clean latest Mountain Lion). Except I used homebrew (http://brew.sh/) to install it. There was a patch shipped with the brew install to fix an issue, likely this one. I have had no problems at all with zeromq on my system thus far. Ch

[zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Peter Jurgensen
Hi, This is my first exercise with 0MQ. I've read the guide, and watched a bunch of video lectures/interviews on 0MQ. I didn't expect these bugs. I downloaded 3.2.3. This is on a new clean install on Mountain Lion. After a ./configure, then make it produced: test_disconnect_inproc.cpp: In

Re: [zeromq-dev] Jenkins CI build for windows

2013-09-02 Thread Steven McCoy
On 2 September 2013 05:01, wrote: > Since Travis CI does seem to support windows (though sounds like they will > do real soon now), I set up a Jenkins CI build for libzmq on windows at * > http://libzmq.cloudapp.net/* if anyone is > interested. > Nice, kind of funny

Re: [zeromq-dev] Is ZMQ_PLAIN authentication supposed to do anything?

2013-09-02 Thread Pieter Hintjens
OK, fair enough. Then I think we have this working. On Mon, Sep 2, 2013 at 7:34 PM, Min RK wrote: > > > On Sep 2, 2013, at 9:25, Pieter Hintjens wrote: > >> MinRK, >> >> I've just pushed a patch that fixes authentication for PLAIN and >> CURVE, and updated the test cases to match. >> >> It all w

Re: [zeromq-dev] Is ZMQ_PLAIN authentication supposed to do anything?

2013-09-02 Thread Min RK
On Sep 2, 2013, at 9:25, Pieter Hintjens wrote: > MinRK, > > I've just pushed a patch that fixes authentication for PLAIN and > CURVE, and updated the test cases to match. > > It all works as expected... :-) > > One thing about CURVE authentication; client keys are passed to the > ZAP handle

Re: [zeromq-dev] Is ZMQ_PLAIN authentication supposed to do anything?

2013-09-02 Thread Pieter Hintjens
MinRK, I've just pushed a patch that fixes authentication for PLAIN and CURVE, and updated the test cases to match. It all works as expected... :-) One thing about CURVE authentication; client keys are passed to the ZAP handler as 32 binary bytes. I'm wondering whether it would be nicer to pass

Re: [zeromq-dev] Jenkins CI build for windows

2013-09-02 Thread Richard_Newton
Hi Matt, I can look into that, though reading https://github.com/travis-ci/travis-ci/issues/216 it looks like they may have windows support in Travis quite soon, so it might make sense to wait and see if they do and switch to using Travis for windows as well. Ric. From: "Matt Connolly"

Re: [zeromq-dev] Jenkins CI build for windows

2013-09-02 Thread Matt Connolly
And I have one set up for SmartOS, although mine is on a private network at present. Have you seen if there is a plugin for Jenkins that can be used to provide the build passing/failing graphic like Travis has? That would be awesome to include the other platforms on the project about page! -Ma

Re: [zeromq-dev] Jenkins CI build for windows

2013-09-02 Thread Pieter Hintjens
That's great :) On Mon, Sep 2, 2013 at 11:01 AM, wrote: > Hi, > > Since Travis CI does seem to support windows (though sounds like they will > do real soon now), I set up a Jenkins CI build for libzmq on windows at > http://libzmq.cloudapp.net/ if anyone is interested. > > Ric. > > =

[zeromq-dev] Jenkins CI build for windows

2013-09-02 Thread Richard_Newton
Hi, Since Travis CI does seem to support windows (though sounds like they will do real soon now), I set up a Jenkins CI build for libzmq on windows at http://libzmq.cloudapp.net/ if anyone is interested. Ric. === The information in this e

Re: [zeromq-dev] How to limit part of connection for those who piad

2013-09-02 Thread Pieter Hintjens
To do this you have to send individually to each client, which means using a ROUTER-DEALER pattern. You can see examples of this in the Guide. On Mon, Sep 2, 2013 at 8:50 AM, Ho Yeung Lee wrote: > any client connect can also subscribe data > > how to make publisher to choose which client can rece

Re: [zeromq-dev] Terminating context after fork

2013-09-02 Thread Pieter Hintjens
On Sat, Aug 31, 2013 at 1:35 PM, Matt Connolly wrote: >> I have a question though: When a socket is closed, does that actually send a >> “closing” message over the wire? If so, this could be problematic in that >> the child would be communicating the fact that it is closing the socket, but >>

Re: [zeromq-dev] non-clean exit - "Context was terminated"

2013-09-02 Thread Pieter Hintjens
OK, so in your modified code, when you get NULL back from a recv call, you have to exit the loop. This is how the blocking recv functions in CZMQ signal an ETERM situation. zctx_interrupted will not be raised on all threads, only the one that caught the Ctrl-C. On Mon, Sep 2, 2013 at 5:19 AM, Chri

Re: [zeromq-dev] non-clean exit - "Context was terminated"

2013-09-02 Thread Pieter Hintjens
The message gets printed when you try to set a socket option on a socket after the thread (or another) has terminated the context. I'm not sure if printing the message is a good response... that could be fixed. However it's not an error; it's a normal shutdown. One thread terminates the context a

[zeromq-dev] What is the maximum of subscriber that performance maintain at real time?

2013-09-02 Thread Ho Yeung Lee
What is the maximum of subscriber that performance maintain at real time? ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

[zeromq-dev] What is the maximum subscribers can subscribe from one publisher?

2013-09-02 Thread Ho Yeung Lee
What is the maximum subscribers can subscribe from one publisher? ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

[zeromq-dev] How to limit part of connection for those who piad

2013-09-02 Thread Ho Yeung Lee
any client connect can also subscribe data how to make publisher to choose which client can receive? ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev