[zeromq-dev] Try to run a very simple example wih pyzmq and multiprocessing

2014-03-28 Thread SUDRES Xavier
I'm trying to run a very simple example code using pyzmq and multiprocessing. I just want to have two threads communicating through an zmq socket (inproc or ipc). I'm using the following code: import zmq from multiprocessing import Process def main(): uri = ipc:///tmp/FORK context =

Re: [zeromq-dev] zyre logging

2014-03-28 Thread Pieter Hintjens
The logging API is defined in zyre_log.h; it does not go through Zyre at all but uses a direct PUB/SUB flow (otherwise we could not use it to log Zyre events). You need to find the logger peer from the X-ZRELOG header, then connect to it and send it messages, using zyre_log. This isn't properly

Re: [zeromq-dev] Try to run a very simple example wih pyzmq and multiprocessing

2014-03-28 Thread KIU Shueng Chuan
Don't pass context to the child process. Create another context in the child. ZeroMQ objects don't work well across forks. On Thu, Mar 27, 2014 at 10:42 PM, SUDRES Xavier xavier.sud...@atos.netwrote: I'm trying to run a very simple example code using pyzmq and multiprocessing. I just want

Re: [zeromq-dev] Question about zeromq throughput benchmarks.

2014-03-28 Thread Alexander V Vershilov
On 27 March 2014 16:48, Charles Remes li...@chuckremes.com wrote: On Mar 27, 2014, at 4:41 AM, Alexander V Vershilov alexander.vershi...@gmail.com wrote: Hi, I’m trying to write a small benchmark program using zeromq-4.0.4 that will be used as a prototype for higher level library. Test

[zeromq-dev] monitoring graphic tool for zeroMQ

2014-03-28 Thread VITIELLO Fabien
Hi, I am working on a project which needs to comunicate between multiple processes. In this project, it is really important to have monitoring tools to watch communication contents. I was wondering if tools were available for zeroMQ relative to monitoring like QDdbusviewer for dbus IPC

[zeromq-dev] monitoring graphic tool for zeroMQ

2014-03-28 Thread VITIELLO Fabien
Hi, I am working on a project which needs to comunicate between multiple processes. In this project, it is really important to have monitoring tools to watch communication contents. I was wondering if tools were available for zeroMQ relative to monitoring like QDdbusviewer for dbus IPC

Re: [zeromq-dev] zyre logging

2014-03-28 Thread Scott Gibbons
Thanks, but zyre_log.h isn't installed in /usr/local/include. I've commented on https://github.com/zeromq/zyre/issues/147. Was it intended to be installed? Thanks, --Scott On Fri, Mar 28, 2014 at 1:50 AM, Pieter Hintjens p...@imatix.com wrote: The logging API is defined in zyre_log.h; it

Re: [zeromq-dev] zyre logging

2014-03-28 Thread Pieter Hintjens
Fixed that, it was an error in the Makefile. On Fri, Mar 28, 2014 at 1:14 PM, Scott Gibbons sgibb...@clicksecurity.com wrote: Thanks, but zyre_log.h isn't installed in /usr/local/include. I've commented on https://github.com/zeromq/zyre/issues/147. Was it intended to be installed? Thanks,

[zeromq-dev] Hilarious(?) weird error when using PyZMQ 14.1.1 + zmq.auth.create_certificates()

2014-03-28 Thread Jonas Thiem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi *, Traceback (most recent call last): File ./keycertgen.py, line 44, in module zmq.auth.create_certificates(path, key) File /usr/lib64/python3.3/site-packages/zmq/auth/certs.py, line 67, in create_certificates public_key, secret_key =

Re: [zeromq-dev] Question about zeromq throughput benchmarks.

2014-03-28 Thread Pieter Hintjens
10,000 messages is often too little to get significant results. Try sending 2M small messages... zmq_send copies the data, which for large messages costs more. On Fri, Mar 28, 2014 at 10:20 AM, Alexander V Vershilov alexander.vershi...@gmail.com wrote: On 27 March 2014 16:48, Charles Remes

Re: [zeromq-dev] Hilarious(?) weird error when using PyZMQ 14.1.1 + zmq.auth.create_certificates()

2014-03-28 Thread MinRK
That is indeed an interesting failure. How did you install libzmq and libsodium? What is the output of a simple: python -c 'import zmq; print(zmq.curve_keypair())' -MinRK On Fri, Mar 28, 2014 at 2:23 AM, Jonas Thiem jonasth...@googlemail.comwrote: -BEGIN PGP SIGNED MESSAGE-

Re: [zeromq-dev] Hilarious(?) weird error when using PyZMQ 14.1.1 + zmq.auth.create_certificates()

2014-03-28 Thread Jonas Thiem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I installed PyZMQ 14.1.1 through pip, but had a libzmq 3.x installed system-wide (package manager). For some reason it didn't care to install libzmq 4.x too or say anything about it, so that is why things broke as it appears! Now I removed the libzmq

Re: [zeromq-dev] zmq_recv question

2014-03-28 Thread David Cheney
Hi Pieter, Thanks for zmq.. we are loving using it in our clustered HA storage product. I regret that my C skills are rusty enough that I'd not presume to suggest a patch suitable across your target environment(s) :) Best I can do is to pass along my compiler/OS details - we are pretty