Re: [zeromq-dev] Google Summer of Code 2014

2013-12-30 Thread Bjorn Reese
On 12/29/2013 08:34 PM, Pieter Hintjens wrote: please go ahead and let us know here on the list how things go. I'm personally not a fan of such events and won't take an active role. So what part of Google paying students and mentors to work on ZeroMQ projects do you dislike?

Re: [zeromq-dev] Why 0mq doesn't define TTL for message (for in-mem queue)?

2013-12-30 Thread artemv zmq
hi Pieter, What you probably want to make, what most developers end up making, is a framework that does the messaging you need (using ZeroMQ) and hides this from your application. 100% true. This is what I'm doing. In java. A TTL is hugely application dependent. Putting this into ZeroMQ

Re: [zeromq-dev] StreamQ-Proxy ----- Help please

2013-12-30 Thread Laurent Alebarde
Hi all, Sorry to come back with this, I am still blocked with my attempt to proxy CURVE with ZMQ_STREAM. The problem is depicted here (https://github.com/lalebarde/streamq-proxy) in the status. As it is a festivity period, please welcome this last bottle in the sea. Cheers, Laurent Le

Re: [zeromq-dev] StreamQ-Proxy ----- Help please

2013-12-30 Thread Laurent Alebarde
Hold on, I am in progress. Le 30/12/2013 12:03, Laurent Alebarde a écrit : Hi all, Sorry to come back with this, I am still blocked with my attempt to proxy CURVE with ZMQ_STREAM. The problem is depicted here (https://github.com/lalebarde/streamq-proxy) in the status. As it is a

Re: [zeromq-dev] Reading queued messages after disconnect

2013-12-30 Thread Matt Connolly
After some further testing with czmq, I have discovered that the behaviour of not being able to read from a socket when not bound is particular to the ruby rbczmq bindings, and that czmq does not operate this way. I’m curious if other bindings such as python are the same as czmq. I can update

Re: [zeromq-dev] StreamQ-Proxy ----- Help please

2013-12-30 Thread Laurent Alebarde
Good news: it works now. TODO: 1. Test multi-part messages. 2. Test asynchronicity (send several messages before waiting for responses). 3. Extend to many clients workers. Le 30/12/2013 13:03, Laurent Alebarde a écrit : Hold on, I am in progress. Le 30/12/2013 12:03,

[zeromq-dev] Language Binding Policy

2013-12-30 Thread pblasucci
Hi all, As the repository for the F# ZMQ binding (hereafter, fszmq) has been recently moved into the zeromq organization (on GitHub), I’m a bit confused as to process. Specifically: should I continue to commit directly to the fszmq repo, or should I fork it (under my personal GitHub account)

[zeromq-dev] ZMQ_STREAM and multipart messages

2013-12-30 Thread Laurent Alebarde
Hi Devs, In *test_stream.cpp*, the ZMQ_SNDMORE flag is tested on receive with: rc = zmq_msg_recv (identity, stream, 0); assert (rc 0); assert (zmq_msg_more (identity)); and is set with: rc = zmq_msg_send (identity, stream, ZMQ_SNDMORE); I note that *zmq_msg_recv* / *zmq_msg_send*

[zeromq-dev] Authentication with curve

2013-12-30 Thread Nicolas Delaby
Hi all, I would like to know how I can reliably authenticate a peer based on its curve public_key value and its identity (assuming the zap_handler is coupled with a ROUTER socket) ? As the zap handler receive only the public_key value but client socket identity. Is it safe to consider that the

Re: [zeromq-dev] Language Binding Policy

2013-12-30 Thread Diego Duclos
Hello there, This is the first I hear about the F# binding, great work there! Your library seems to pretty much answer the same needs as clrzmq did, except for the fact clrzmq is completely out of date (has not been updated for over a year). As an avid .NET and ØMQ user, I'd be happy to help

Re: [zeromq-dev] ZMQ_STREAM and multipart messages

2013-12-30 Thread Laurent Alebarde
So I answer to myself: yes. Le 30/12/2013 18:02, Laurent Alebarde a écrit : Hi Devs, In *test_stream.cpp*, the ZMQ_SNDMORE flag is tested on receive with: rc = zmq_msg_recv (identity, stream, 0); assert (rc 0); assert (zmq_msg_more (identity)); and is set with: rc = zmq_msg_send

Re: [zeromq-dev] StreamQ-Proxy ----- Help please

2013-12-30 Thread Laurent Alebarde
Now it works with multipart messages and asynchronous messages. TODO: Extend to many clients workers. Le 30/12/2013 15:31, Laurent Alebarde a écrit : Good news: it works now. TODO: 1. Test multi-part messages. 2. Test asynchronicity (send several messages before waiting for

Re: [zeromq-dev] PyZMQ recv() acts crazy on one machine

2013-12-30 Thread MinRK
And how did you install libzmq? It seems like you have a borked install. Perhaps rebuilding libzmq and/or pyzmq is the answer. On Sun, Dec 29, 2013 at 6:27 PM, Thomas Johnson thomas.j.john...@gmail.comwrote: Thanks, that was the problem. The broken one had 4.0.3 and the working one had 2.2.0

Re: [zeromq-dev] PyZMQ recv() acts crazy on one machine

2013-12-30 Thread Thomas Johnson
Yeah I think you're right; I'm going to clean out and reinstall both of those On Mon, Dec 30, 2013 at 2:41 PM, MinRK benjami...@gmail.com wrote: And how did you install libzmq? It seems like you have a borked install. Perhaps rebuilding libzmq and/or pyzmq is the answer. On Sun, Dec 29,

[zeromq-dev] Heartbeating using TCP keepalives

2013-12-30 Thread Alex Grönholm
This isn't directly related to ZeroMQ, but it is somewhat relevant now given A) the addition of the (yet unimplemented) heartbeating feature in ZMTP/3.0 and B) the Windows TCP keepalive parameters fix I committed recently. The question is: has someone here used TCP keepalives as a substitute

Re: [zeromq-dev] Google Summer of Code 2014

2013-12-30 Thread Pieter Hintjens
On Mon, Dec 30, 2013 at 10:07 AM, Bjorn Reese bre...@mail1.stofanet.dk wrote: So what part of Google paying students and mentors to work on ZeroMQ projects do you dislike? Specifically, I think it's a distortion of the natural economies of the project. It is a delicate process to decide what

Re: [zeromq-dev] Why 0mq doesn't define TTL for message (for in-mem queue)?

2013-12-30 Thread Pieter Hintjens
On Mon, Dec 30, 2013 at 10:28 AM, artemv zmq artemv@gmail.com wrote: Yes, true, TTL is abstract thing. But, with high probability, everyone would want this: I want a setting of how long message lives in sending _and/or_ receiving queue. And yet you are the first person to request this

[zeromq-dev] Authentication with curve

2013-12-30 Thread Nicolas Delaby
Hi all, I would like to know how I can reliably authenticate a peer based on its curve public_key value and its identity (assuming the zap_handler is coupled with a ROUTER socket) ? As the zap handler receive only the public_key value but client socket identity. Is it safe to consider that

[zeromq-dev] JeroMQ - Add logging

2013-12-30 Thread pablo fernandez
Hi guys, I'm Moving the conversation that started here[1] to the mailing list in request of @Miniway (I assume he/she is jeromqs leader). My motivation for adding logging into jeromq: 1) It greatly improves debugging. 2) The performance impacts with logging turned off are minimal. And even if

Re: [zeromq-dev] Authentication with curve

2013-12-30 Thread Pieter Hintjens
On Mon, Dec 30, 2013 at 6:18 PM, Nicolas Delaby tico...@free.fr wrote: I would like to know how I can reliably authenticate a peer based on its curve public_key value and its identity (assuming the zap_handler is coupled with a ROUTER socket) ? As the zap handler receive only the public_key

Re: [zeromq-dev] JeroMQ - Add logging

2013-12-30 Thread Joshua Foster
What sort of debugging are you trying to solve? Logging statements can be done well and poorly.This also depends on what sort of debugging is needed. slf4j is an external library, have you considered using java.util.logging? Joshua On Dec 30, 2013, at 8:11 AM, pablo fernandez

Re: [zeromq-dev] Google Summer of Code 2014

2013-12-30 Thread Michel Pelletier
I have to agree with Pieter. GSOC is a recriting tool for google. They are paying students a pittence to see who among the hoard of respondents rises above the rest so they can court the tiny fraction of those with merit before any other companies. They offload the cost of vetting those

[zeromq-dev] Race condition in socket creation

2013-12-30 Thread Michi Henning
Here is a minimal test case: #include zmqpp/zmqpp.hpp int main() { zmqpp::context c; zmqpp::socket s(c, zmqpp::socket_type::publish); } When I compile this with Clang's thread sanitizer and run it, I get: == WARNING: ThreadSanitizer: data race (pid=4369) Read of

[zeromq-dev] Async access to a single socket - send and recv without reducing throughput

2013-12-30 Thread Amir Taaki
Hi! I have a bit of a design issue. I want to achieve this: - Software receives a request on a DEALER socket from a ROUTER socket (think the worker in paranoid pirate pattern). - Request is executed asynchronously in the software. Result is ready inside another thread. - Send it back over the

Re: [zeromq-dev] Async access to a single socket - send and recv without reducing throughput

2013-12-30 Thread Amir Taaki
I was reading the docs and saw: How can I integrate ØMQ sockets with normal sockets? Or with a GUI event loop? You can use the zmq_poll() function to poll for events on both ØMQ and normal sockets. The zmq_poll() function accepts a timeout so if you need to poll and process GUI events in

[zeromq-dev] How do I find out which ZAP user I'm talking to? (zap rely field 5)

2013-12-30 Thread Drew Crawford
Hey folks, I’ve got a REQ-ROUTER architecture where clients (with a REP socket) connect to a server (with a ROUTER socket). This connection is authenticated via CURVE. I need to figure out some person/username/unique identifier that is associated with the incoming REQ. There are a couple of

Re: [zeromq-dev] How do I find out which ZAP user I'm talking to? (zap rely field 5)

2013-12-30 Thread Amir Taaki
Have you thought about a custom frame at the top of your message? Or the clients can set their own custom identity if they have unique names. On Tuesday, December 31, 2013 6:51 AM, Drew Crawford d...@sealedabstract.com wrote: Hey folks, I’ve got a REQ-ROUTER architecture where clients

Re: [zeromq-dev] How do I find out which ZAP user I'm talking to? (zap rely field 5)

2013-12-30 Thread Drew Crawford
Well if I allow just any client to claim to be billgates that’s not going to be very secure… …or did I misunderstand your proposal? On Dec 31, 2013, at 12:56 AM, Amir Taaki zgen...@yahoo.com wrote: Have you thought about a custom frame at the top of your message? Or the clients can set