Re: [zeromq-dev] EncryptedSocket added to pyzmq in branch

2010-11-10 Thread Burak Arslan
hello martin, sorry, for the late reply, i had a work urgency to tackle. On 11/06/10 15:27, Martin Sustrik wrote: > Hi Burak, > > I have very little experience with security so bear with me if my > questions are stupid. > >> (X)REP/REQ sockets use message parts to store target nodes. If the >>

Re: [zeromq-dev] SUB socket hangs after some time (Joshua Foster)

2010-11-10 Thread Mike Perik
You may want to look at the patch Marc Rossi submitted either yesterday or earlier today for the very same problem. I'm running it on OS X with 2.0.9 and I haven't seen the issue yet. I'll compile 2.0.10 and see if it happens later tonight. Not sure if this affects it, but numMessages shou

Re: [zeromq-dev] SUB socket hangs after some time

2010-11-10 Thread Oliver Senn
I tried using * instead of 127.0.0.1 and different ports but the problem was still around. Then I also tested on different machines. I was able to reproduce the problem on an Ubuntu 10.04 box with Kernel 2.6.32-25. For this machine I was also able to reproduce the problem even when the publishe

Re: [zeromq-dev] SUB socket hangs after some time

2010-11-10 Thread Joshua Foster
I just tried it with 2.0.9, 2.0.10, and the latest from maint branch. I am not seeing the symptoms. The client continues to pull messages off. I suspect that it may be something else to your environment. Does it still exhibit the problem if you bind to a different port? Or when you bind to '*' v

Re: [zeromq-dev] PyZMQ support for socket options added in ZeroMQ 2.1

2010-11-10 Thread Martin Lucina
Hi Min, benjami...@gmail.com said: > I really recommend using current github master over 2.0.8, until we cut a > 2.0.10 release, at least.  Note that pyzmq master remains 2.0.x targeted, > since > we haven't moved up to 2.1.x yet, and we will definitely cut a 2.0.x release > before that happens i

Re: [zeromq-dev] PyZMQ support for socket options added in ZeroMQ 2.1

2010-11-10 Thread MinRK
Hello, On Wed, Nov 10, 2010 at 15:50, Martin Lucina wrote: > Hi, > > I need to add support for some of the new socket options added in ZeroMQ > 2.1 to PyZMQ for an application I'm developing, however I'm having problems > figuring out what version of Cython to use. On my Debian lenny system, if

[zeromq-dev] PyZMQ support for socket options added in ZeroMQ 2.1

2010-11-10 Thread Martin Lucina
Hi, I need to add support for some of the new socket options added in ZeroMQ 2.1 to PyZMQ for an application I'm developing, however I'm having problems figuring out what version of Cython to use. On my Debian lenny system, if I use the distro-provided version (0.9.8) I get: cythoning zmq/_zmq.py

Re: [zeromq-dev] SUB socket hangs after some time

2010-11-10 Thread Oliver Senn
Hi Joshua, Thanks for the help. I will try again after making the variable volatile. But the program hangs in the receiving method of the socket, so I don't think it's because of that. I only tried the test program on one machine but the whole program was used on multiple machines and was show

Re: [zeromq-dev] SUB socket hangs after some time

2010-11-10 Thread Joshua Foster
I'm running it on OS X with 2.0.9 and I haven't seen the issue yet. I'll compile 2.0.10 and see if it happens later tonight. Not sure if this affects it, but numMessages should be volatile since you have multiple threads accessing it. If you want the ability to restart the subscriber without los

[zeromq-dev] Problem with installing ruby zmq gem on Windows

2010-11-10 Thread Fedor Malyshkin
1. I downloaded zmq from sources (version ⌠zeromq-2.0.10■), successfully builded it. 2. When I entered command ▒gem install zmq -- --with-zmq-dir=D:\develop\projects\libs\zeromq-2.0.10▓ I received error in ⌠mkmf.log■ ⌠D:\develop\develop\ruby-1.9.2\include\ruby-1.9.1\i386-mswin32\ruby/config.h(2)

Re: [zeromq-dev] tasksink2 example slightly confusing

2010-11-10 Thread Pieter Hintjens
OK, fixed, I just removed the initialization, it was pointless and misleading. On Wed, Nov 10, 2010 at 6:26 PM, Pieter Hintjens wrote: > You're right, I initially intended to add up each task's time and then > switched to just calculating the total elapsed time.  I'll fix the C > code and as many

Re: [zeromq-dev] tasksink2 example slightly confusing

2010-11-10 Thread Pieter Hintjens
You're right, I initially intended to add up each task's time and then switched to just calculating the total elapsed time. I'll fix the C code and as many of the translations as I can... On Wed, Nov 10, 2010 at 6:12 PM, jeremy avnet wrote: > https://github.com/imatix/zguide/blob/master/examples

[zeromq-dev] tasksink2 example slightly confusing

2010-11-10 Thread jeremy avnet
https://github.com/imatix/zguide/blob/master/examples/C/tasksink2.c#L27 It looks like the code was going to add up the results received (total_msec is set to zero before processing 100 tasks), but then after the processing loop, total_msec is just set to the clock time duration. Was the intenti

Re: [zeromq-dev] Python translation: added mspoller and msreader

2010-11-10 Thread Pieter Hintjens
Hi Jeremy, It works now. I'd been using the patch option (getting the pull request into a patch and applying) since some bad experiences using merge. My git fu is too weak. Thanks for the contributions. -Pieter On Wed, Nov 10, 2010 at 4:15 PM, jeremy avnet wrote: > Hi, Pieter. > > I just did

[zeromq-dev] Python translation: Added taskwork2 and tasksink2

2010-11-10 Thread jeremy avnet
This code is licensed under the MIT/X11 license. https://github.com/brainsik/zguide/commit/9af8f1e03fbbcce7b576a9f5e061a8ce31355c83 Saw it got pulled in with this: https://github.com/imatix/zguide/pull/18 .:. jeremy ___ zeromq-dev mailing list zeromq

Re: [zeromq-dev] Possible OpenPGM bug in git repo

2010-11-10 Thread dv
On 11/08/2010 02:51 AM, Steven McCoy wrote: On 7 November 2010 06:16, dv > wrote: ifconfig tells me that multicast is enabled for eth1, but not for lo. With purinrecv, I always get the same result, which is pasted below. Can you try the attached test

Re: [zeromq-dev] Python translation: added mspoller and msreader

2010-11-10 Thread jeremy avnet
Hi, Pieter. I just did a git pull from the imatix/zguide master and a git push to my own fork. The merge was clean. Not sure why your patch is touching those identity files as they are already the same in both repos. Let me know if you are still having problems. The new pull request is here: h

Re: [zeromq-dev] First few guide examples to go with clrzmq2

2010-11-10 Thread Pieter Hintjens
Applied and uploaded, thanks! On Wed, Nov 10, 2010 at 1:08 AM, Michael Compton wrote: > Some more example code, up to chapter 3 of guide. > > Cheers, > Michael > > On Mon, 2010-11-08 at 22:27 +, Michael Compton wrote: >> Here is the first few examples from the 0MQ guide using the new clrzmq2,

Re: [zeromq-dev] Python translation: added mspoller and msreader

2010-11-10 Thread Pieter Hintjens
Jeremy, The pull request failed (I'm applying as a patch): Applying: Better comment about how identity is being set error: patch failed: examples/C++/identity.cpp:10 error: examples/C++/identity.cpp: patch does not apply error: patch failed: examples/C/identity.c:8 error: examples/C/identity.c: p

Re: [zeromq-dev] Static library in Visual Studio (SOLVED)

2010-11-10 Thread Martin Sustrik
On 9/11/2010, "Pieter Hintjens" wrote: >On Tue, Nov 9, 2010 at 10:40 PM, malist wrote: > >> It is better to: >> a) add static and static debug targets to master >> b) let someone who knows what he/she is doing also explain it :) > >I've no idea... :-) Have a look at thread called "Static lin

[zeromq-dev] SUB socket hangs after some time

2010-11-10 Thread Oliver Senn
Hi list, In our code we use a simple PUB/SUB scheme: A publisher is sending data over a PUB socket and a subscriber is getting that data using a SUB socket. Today I tested the code and (especially with a lot of messages) after some time the subscriber hangs in socket.recv(). The publisher happi

Re: [zeromq-dev] Working with Windows timing resolution for select() timeouts

2010-11-10 Thread Martin Sustrik
Steve, Thanks! I'll apply the patch shortly. Martin On 9/11/2010, "Steven McCoy" wrote: >Hi Martin, > > I haven't run it through the ØMQ test programs, but here is the >explanation. On Windows the wait functions can have a 1ms resolution by >calling timeBeginPeriod(*1ms*), any time specifie

Re: [zeromq-dev] [PATCH] socket_base_t::recv() hangs intermittently when in blocking mode under certain conditions

2010-11-10 Thread Martin Sustrik
Hi Mark, Thanks for the patch. I am currently out of the town. I'll be back on Friday. I'll review and apply your patch then. Martin On 10/11/2010, "Marc Rossi" wrote: >Here is code that can recreate the problem. The first pastebin link shows >changes that need to be made to the socket_base

Re: [zeromq-dev] [PATCH] Re: assertion failure with master

2010-11-10 Thread Martin Sustrik
Dhammika, >Why do we generate so many commands anyway? >Default linux sockbuf is 128K. Most commands are fixed length, >assuming 32B we get 4096 commands. The problem happens when there are many connections/disconnections at the same time and the thread owning the corresponding socket is busy do

Re: [zeromq-dev] UDT as a transport

2010-11-10 Thread Martin Sustrik
Hi Chris, >Back in December 2009 there was some discussion of adding UDT as a >transport. Has anyone actually started this? I recall the discussion but I am not aware anybody actually tried to implement it. I would like to have the code in 0mq, but I don't have resources to look into it myself.