Re: [zeromq-dev] Proposal for next stable release

2012-03-19 Thread Pieter Hintjens
On Mon, Mar 19, 2012 at 12:48 AM, john skaller skal...@users.sourceforge.net wrote: I observe 0MQ is seriously lacking in regression tests. The above procedure should fix that. I'm not going to respond to your post, it's far too long and you are making too many wild arguments in one thread. Is

Re: [zeromq-dev] Proposal for next stable release

2012-03-19 Thread john skaller
On 19/03/2012, at 5:08 PM, Pieter Hintjens wrote: On Mon, Mar 19, 2012 at 12:48 AM, john skaller skal...@users.sourceforge.net wrote: I observe 0MQ is seriously lacking in regression tests. The above procedure should fix that. I'm not going to respond to your post, it's far too long and

Re: [zeromq-dev] Proposal for next stable release

2012-03-19 Thread Pieter Hintjens
On Mon, Mar 19, 2012 at 1:29 AM, john skaller skal...@users.sourceforge.net wrote: C4 is a single document, I just put all the issues in one document too :) You asked for feedback, I gave it. Since you're irritated I will cease commenting. To be accurate you send a torrent of comments

[zeromq-dev] Problem with ZeroMQ thread

2012-03-19 Thread Zafar Iqbal
Hi, I have a question, in my application which is a multithreaded process, I am using inproc protocol to communicate between the process. I have observed after every new user thread creation 2 more new zmq threads are getting created but when user thread is dying this zmq thread is still there

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Hi , Is there any one who can help me on this ?? Regards, Ronald From: proj_symb...@live.com To: zeromq-dev@lists.zeromq.org Date: Sun, 18 Mar 2012 19:44:15 +0530 Subject: Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder Hello Cornelius, Thanks and that worked well

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Justin Cook
On Mon, Mar 19, 2012 at 10:25 AM, Symbian Projects proj_symb...@live.com wrote: Is there any one who can help me on this ?? This thread started focusing signal handling versus your messaging code. If it was working and now is not, clearly you changed something that created this behaviour. Look

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Hello Justin, Thanks a lot for your reply. Yes i remember for what the thread was started, and that time my forwarder was running great without any problem. I was able to send and receive messages between my publisher and subscribers. Than i added the signals to clean the sockets. After

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Antonio Teixeira
Hello Again :) Dunno if i should open a new topic but here it goes. During a test i found a small problem :) The same client server model. Imagine using REQ the client asks something from the server. The message exits the client and arrives at the server while it's under processing ( on the

Re: [zeromq-dev] Problem with ZeroMQ thread

2012-03-19 Thread Chuck Remes
You should audit your code for calls to zmq_init(). I would guess that each new user thread is calling that function which is unnecessary. You only need to call zmq_init() once *per process.* cr On Mar 19, 2012, at 4:49 AM, Zafar Iqbal wrote: Hi, I have a question, in my application which

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Chuck Remes
On Mar 19, 2012, at 6:10 AM, Antonio Teixeira wrote: Hello Again :) Dunno if i should open a new topic but here it goes. During a test i found a small problem :) The same client server model. Imagine using REQ the client asks something from the server. The message exits the client and

Re: [zeromq-dev] zeromq and libuv

2012-03-19 Thread Christian Martinez
The performance is problematic https://github.com/JustinTulloss/zeromq.node/issues/83 --CM -Original Message- From: zeromq-dev-boun...@lists.zeromq.org [mailto:zeromq-dev-boun...@lists.zeromq.org] On Behalf Of Ilya Dmitrichenko Sent: Sunday, March 18, 2012 12:58 PM To: ZeroMQ

Re: [zeromq-dev] zeromq and libuv

2012-03-19 Thread Ilya Dmitrichenko
On 19 March 2012 13:52, Christian Martinez ch...@microsoft.com wrote: The performance is problematic https://github.com/JustinTulloss/zeromq.node/issues/83 I see, not good news ;( ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Antonio Teixeira
Hello Chuck , this is correct. But i can imagine that during the work processing if the server goes off line ( no response) will block the client on recv () ? Regards A/T 2012/3/19 Chuck Remes cremes.devl...@mac.com On Mar 19, 2012, at 6:10 AM, Antonio Teixeira wrote: Hello Again :)

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Pieter Hintjens
On Mon, Mar 19, 2012 at 10:10 AM, Antonio Teixeira eagle.anto...@gmail.com wrote: But i can imagine that during the work processing if the server goes off line ( no response) will block the client on recv () ? Antonio, You should read the Guide, especially Ch4 which describes how to solve

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Justin Cook
If the same code with same libraries no longer works then clearly you have a runtime issue. Have you tried restarting the platforms? Maybe you should have a look at the order in which things are happening. Are you subscribing before the messages are sent? Perhaps its an IP filtering issue. Make

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Antonio Teixeira
Hello Pieter Thanks alot i have read the guide but it was on the old website. Anyway this is if far better in the end is a mix of Poll and socket renewal , thanks. Regards A/T 2012/3/19 Pieter Hintjens p...@imatix.com On Mon, Mar 19, 2012 at 10:10 AM, Antonio Teixeira eagle.anto...@gmail.com

[zeromq-dev] Limit socket queue size

2012-03-19 Thread Boris Gulay
I want to limit socket internal queue to one message. To do that I call zmq_setsockopt with second argument set to one right after socket creation (socket type = PUSH). I use zlrzmq and I get an exception: Invalid argument. What I'm doing wrong? signature.asc Description: OpenPGP digital

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Pieter Hintjens
On Mon, Mar 19, 2012 at 10:35 AM, Antonio Teixeira eagle.anto...@gmail.com wrote: Thanks alot i have read the guide but it was on the old website. Where was that? Do you mean the old introduction on the zeromq.org site? -Pieter ___ zeromq-dev mailing

Re: [zeromq-dev] Limit socket queue size

2012-03-19 Thread Boris Gulay
19.03.2012 19:40, Boris Gulay пишет: I want to limit socket internal queue to one message. To do that I call zmq_setsockopt with second argument set to one right after socket creation (socket type = PUSH). I use zlrzmq and I get an exception: Invalid argument. What I'm doing wrong? I should

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Antonio Teixeira
I started working with ZMQ on the really really early version so was the old old guide :) Anyway Pieter i have everything i need Paranoid Pirate PatternIs the way to go :) Thanks 2012/3/19 Pieter Hintjens p...@imatix.com On Mon, Mar 19, 2012 at 10:35 AM, Antonio Teixeira

Re: [zeromq-dev] Limit socket queue size

2012-03-19 Thread Johnny Gozde
Boris, On Mon, Mar 19, 2012 at 9:48 AM, Boris Gulay bo...@boressoft.ru wrote: 19.03.2012 19:40, Boris Gulay пишет: I want to limit socket internal queue to one message. To do that I call zmq_setsockopt with second argument set to one right after socket creation (socket type = PUSH). I

Re: [zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

2012-03-19 Thread Pieter Hintjens
On Mon, Mar 19, 2012 at 10:49 AM, Antonio Teixeira eagle.anto...@gmail.com wrote: I started working with ZMQ on the really really early version so was the old old guide :) Anyway Pieter i have everything i need Paranoid Pirate Pattern Is the way to go :) Great, let us know how it works.

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Hello Justin, Thanks again for reply. I have tried restarting the platform, and i have also checked it in two different machines, and in both machine it doesn't work. I am clue of ideas how to debug this problem as the no of line of code is very small too. Is there any way i can

Re: [zeromq-dev] zeromq and libuv

2012-03-19 Thread John D. Mitchell
Hmm... Something is very confused in this discussion... The zeromq.node project and the performance problems there have to do that projects's Node.js binding with the zeromq libraries. I.e. it doesn't seem to have much, if anything to do with libuv itself. John

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Cornelius Toole
Ronald, You can use netstat. You're using windows, right? http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netstat.mspx?mfr=true As for debugging your code, can you paste the code into a paste bin or gist.github? Try this for instance: https://gist.github.com/

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Thanks for your reply cornelius. I am now using netstat for checking the blocked ports. Meanwhile i have uploaded the code here https://gist.github.com/2119078 and there is no proprietary code at the moment its the basic code where i am trying to get the forwarder working. and your last

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Cornelius Toole
From the looks of your code https://gist.github.com/2119078, you define functions for sending and receiving messages, but you do not call them, like you do with Forwarder.py. Also for the sake of easier testing, you may want to have your sender script to send multiple messages to allow you to

Re: [zeromq-dev] Cleaning-up context creation API

2012-03-19 Thread Pieter Hintjens
Hi All, Following this discussion from some time ago, I've created an issue here: https://zeromq.jira.com/browse/LIBZMQ-337 I see that Crossroads has implemented my suggestion for moving iothreads out of the context creation call. Nice. Before we backport that change and make the other API

Re: [zeromq-dev] Cleaning-up context creation API

2012-03-19 Thread Chuck Remes
On Mar 19, 2012, at 4:22 PM, Pieter Hintjens wrote: Hi All, Following this discussion from some time ago, I've created an issue here: https://zeromq.jira.com/browse/LIBZMQ-337 I see that Crossroads has implemented my suggestion for moving iothreads out of the context creation call. Nice.

[zeromq-dev] Invitation to connect on LinkedIn

2012-03-19 Thread Guilherme Ceschiatti Moreira via LinkedIn
LinkedIn Guilherme Ceschiatti Moreira requested to add you as a connection on LinkedIn: -- jinjing, I'd like to add you to my professional network on LinkedIn. - Guilherme Ceschiatti Accept invitation from Guilherme Ceschiatti

Re: [zeromq-dev] Cleaning-up context creation API

2012-03-19 Thread Johnny Gozde
For the Ruby language, I had just set a default value for the io_threads argument to 1. Most people were just calling Context.new and never even realized there was an option to override. I think there is value here. Ditto for clrzmq. This would be easy to refactor into a property on Context.

Re: [zeromq-dev] Cleaning-up context creation API

2012-03-19 Thread Pieter Hintjens
OK, thanks for the confirmation. I'm on it... -Pieter On Mon, Mar 19, 2012 at 4:49 PM, Johnny Gozde joh...@jgoz.net wrote: For the Ruby language, I had just set a default value for the io_threads argument to 1. Most people were just calling Context.new and never even realized there was an

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Hello Cornelius, I call those methods explicitly in my interpreter, and i have tried with sending infinite message too. Regards, Date: Mon, 19 Mar 2012 13:18:59 -0500 From: cornto...@cct.lsu.edu To: zeromq-dev@lists.zeromq.org Subject: Re: [zeromq-dev] FW: Help With Regard To the ZMQ

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-19 Thread Symbian Projects
Hello Cornelius and Justin, I was at last able to get my forwarder to work and it was my mistake. My sender code which was like: def sendMessage(): context = zmq.Context() sender = context.socket(zmq.PUB) sender.bind('tcp://127.0.0.1:5558') sender.send(This is the sender) was