Re: [zeromq-dev] Repost: ZMQ PUB/SUB questions

2012-09-04 Thread Ian Barber
On Tue, Sep 4, 2012 at 10:53 PM, Ian Barber ian.bar...@gmail.com wrote: Hmm, this just looks broken to me at first blush - init_address seems to be completely ignoring the addr parameter. Have you made a Jira (https://zeromq.jira.com/) issue for this (with the sample code attached if possible

Re: [zeromq-dev] Repost: ZMQ PUB/SUB questions

2012-09-04 Thread Ian Barber
On Tue, Sep 4, 2012 at 10:54 PM, Ian Barber ian.bar...@gmail.com wrote: Ah, there's at least one other issue reported (though lacking an example): https://zeromq.jira.com/browse/LIBZMQ-427 And it did have an example in, my apologies! Try the commit in https://github.com/zeromq/libzmq/pull/420

Re: [zeromq-dev] Boost Unit Testing with 0MQ PUB/SUB Sockets

2012-09-03 Thread Ian Barber
On Mon, Sep 3, 2012 at 6:31 AM, Daniel Ng daniel.ng1...@gmail.com wrote: I'd really appreciate if more people gave this a go to see if they get the same problem... Just to check - when you say it is waiting for another message part, have you confirmed it has received a message part? As in

Re: [zeromq-dev] pear.zero.mq down?

2012-09-01 Thread Ian Barber
FYI - I quickly chucked up the pear channel earlier, but note the DNS change might take some time to make it through cache expiries. Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] zmq3 'make check' fails on rt-preempt kernel - test_pair_tcp hangs

2012-08-29 Thread Ian Barber
On Tue, Aug 28, 2012 at 2:16 PM, Ian Barber ian.bar...@gmail.com wrote: Ah, I fixed a similar issue in master the other day, may well be the same thing. I'll check and send a pull req when I get home. Ian That's all merged in now by the way, so give it another go. Ian

Re: [zeromq-dev] cannot open snapshot.zero.mq

2012-08-29 Thread Ian Barber
On Wed, Aug 29, 2012 at 2:20 AM, lzqsmst lzqs...@qq.com wrote: what's wrong the site snapshot.zero.mq, i want to get the 0mq php dll for windows ,please~ The machine it's on has died - Mikko is looking into it, but the server seems to have become rather unhappy. Ian

Re: [zeromq-dev] zmq3 'make check' fails on rt-preempt kernel - test_pair_tcp hangs

2012-08-28 Thread Ian Barber
On Tue, Aug 28, 2012 at 11:16 AM, Michael Haberler mai...@mah.priv.at wrote: Am 28.08.2012 um 11:57 schrieb Michael Haberler: I'm trying zmq2 and zmq3 on a 2.6.33.7.2-rt30-1-686-bigmem kernel (RT_PREEMPT patch), else ubuntu 10.04 LTS. zmq2: commit 9b07de280107b3b1422e96e90402b7f2a60cf697

Re: [zeromq-dev] Can a Sub socket send messages to Pub

2012-08-26 Thread Ian Barber
On Sun, Aug 26, 2012 at 9:43 AM, Claudio Carbone erup...@libero.it wrote: Not a definitive answer but I strongly believe the answer is no. In another discussion I remember I read that one way sockets are completely stripped of the other way's buffer, so you could even try sending but it

Re: [zeromq-dev] Problem using inproc - What am I doing wrong?

2012-08-25 Thread Ian Barber
On Sat, Aug 25, 2012 at 2:12 AM, Iggy Philly iggy.phi...@hotmail.com wrote: I did try adding this (for several differnt filters including ): string filt = test; zmq_setsockopt(socket, ZMQ_SUBSCRIBE, filt.c_str(), filt.length()); Yep, you need to add that in - by default SUB will reject all

Re: [zeromq-dev] libzmq clrzmq: ARM / WinRT

2012-08-25 Thread Ian Barber
On Sat, Aug 25, 2012 at 4:25 AM, Johnny Gozde joh...@jgoz.net wrote: Hi, clrzmq binding maintainer here. It hasn't been planned (by me), but if you have access to those environments, I'd gladly accept pull requests. I can't speak for libzmq, but I'm sure they would accept pull requests for

Re: [zeromq-dev] Problem using inproc - What am I doing wrong?

2012-08-25 Thread Ian Barber
On Sat, Aug 25, 2012 at 3:30 PM, Iggy Philly iggy.phi...@hotmail.com wrote: Oh man. That was it. Thank you! Good spot Stuart! Reevents and events being used the other way round. ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] Does ZeroMQ have any loopback benchmark?

2012-08-25 Thread Ian Barber
On Sat, Aug 25, 2012 at 4:44 PM, Julie Anderson julie.anderson...@gmail.com wrote: Thanks, Ian. But I am more interested in the results that ZeroMQ has accomplished. Has anyone from ZeroMQ run any test on loopback that can share some results? -J The perf tests are the zeromq benchmarks - if

Re: [zeromq-dev] Java NIO selector minimum possible latency

2012-08-25 Thread Ian Barber
On Sat, Aug 25, 2012 at 9:32 PM, Julie Anderson julie.anderson...@gmail.com wrote: Does ZeroMQ support some kind of reliable UDP for a publisher-subscriber / one-to-many asynchronous messaging system? -J Sort of - the EPGM transport does for PUB/SUB, UDP based multicast. Ian

Re: [zeromq-dev] Does ZeroMQ have any loopback benchmark?

2012-08-24 Thread Ian Barber
On Fri, Aug 24, 2012 at 5:20 PM, Julie Anderson julie.anderson...@gmail.com wrote: Does ZeroMQ have any loopback tests or benchmarks that I can check? You can use the bundled perf tests - though you'd likely use IPC transport rather than TCP loopback (unless perhaps you're on windows). Ian

Re: [zeromq-dev] Compilation fails when NDEBUG is enabled.

2012-08-24 Thread Ian Barber
On Thu, Aug 23, 2012 at 10:15 PM, Arthur O'Dwyer art...@push.am wrote: Thanks to ianbarber for those pulls --- although I'm slightly disturbed by the fact that they happened like 30 seconds after I posted the requests. That doesn't seem like enough time for even Ian to verify that the

Re: [zeromq-dev] Problem using inproc - What am I doing wrong?

2012-08-24 Thread Ian Barber
On Fri, Aug 24, 2012 at 10:54 PM, Iggy Philly iggy.phi...@hotmail.com wrote: I'm trying a simple example using inproc but I'm obviously doing something wrong. My publisher socket sends a message out and the subscriber is polling but never sees anything. I'm sure it's something silly. Here's my

Re: [zeromq-dev] jeromq - java pojo zeromq

2012-08-21 Thread Ian Barber
On Tue, Aug 21, 2012 at 5:16 PM, Victor Perron vic...@iso3103.net wrote: I copy and paste c++ code then changed it into java by hand. mother of god... Aye! I think this will be a really good base to work from for getting some really high speed stuff on the JVM. I can see it being a bugger

Re: [zeromq-dev] multiple contexts on multiple processes and mailbox.ccp:84 assertion

2012-08-21 Thread Ian Barber
On Tue, Aug 21, 2012 at 1:32 PM, Pedro Melo m...@simplicidade.org wrote: Is there a clean way to do this, have fork()'s after the context was created? It's tricky! You'd do better creating a context for each child to be honest. Ian ___ zeromq-dev

Re: [zeromq-dev] proper usage fan-out model

2012-08-21 Thread Ian Barber
On Tue, Aug 21, 2012 at 7:20 AM, Alexander Voron voron.alexan...@gmail.com wrote: Thank you for link, it's quite felpful. I wrote test program sends the same message to 2 endpoints. It sends messages to both clients starting from 2nd message. The first message is recieved by first client

Re: [zeromq-dev] FIX to 0mq bridge

2012-08-17 Thread Ian Barber
On Fri, Aug 17, 2012 at 3:04 PM, gonzalo diethelm gdieth...@dcv.cl wrote: I have been trying to familiarize myself with the FIX protocol, specifically in relation with its usage to publish stock prices /volumes over a feed. I would think anybody with a “0mq point of view” (you know who you are)

Re: [zeromq-dev] Need help with Request-Reply Message Broker

2012-08-15 Thread Ian Barber
On Tue, Aug 14, 2012 at 12:11 PM, Chernyshev Vyacheslav astel...@ro.ru wrote: Hello. I'm currently trying to use zeromq as a message-passing layer in a single process to deliver messages from clients to worker threads that represent a single service. Each client's request results in either 0

Re: [zeromq-dev] ZMTP/1.1, comments

2012-08-13 Thread Ian Barber
On Mon, Aug 13, 2012 at 11:31 AM, Martin Hurton hurt...@gmail.com wrote: disadvantages: - the support of older peers increases the latency of initial handshake - increases code complexity somewhat What do you think? Is there something that would prevent the interoperability between old and

Re: [zeromq-dev] ZMQ3.2: Error in ARM/Thumb2 assembly (atomic_ptr.hpp)

2012-08-11 Thread Ian Barber
On Thu, Aug 9, 2012 at 8:27 PM, Arthur O'Dwyer art...@push.am wrote: ning no results, which is why I referred to it as dead. But when I visited it again just now, it seemed to be back up. So I'll file the same issue over there. Thanks - if you could submit the patch as a pull req against

Re: [zeromq-dev] Assign tasks only once to subscribers

2012-08-10 Thread Ian Barber
On Thu, Aug 9, 2012 at 12:49 PM, andrea crotti andrea.crott...@gmail.com wrote: Another thing, if I produce some nice examples of zeromq usage, can I propose them to be added in the zguide git repository or somewhere else? In the first instance, I'd just post them up elsewhere, on a blog or a

Re: [zeromq-dev] Assign tasks only once to subscribers

2012-08-09 Thread Ian Barber
On Thu, Aug 9, 2012 at 10:24 AM, andrea crotti andrea.crott...@gmail.com wrote: What is the right pattern to split many tasks to many different workers, but where each task can only be taken once?? Push/Pull, req/rep, or something with dealer router depending on the degree of job management

Re: [zeromq-dev] Using zeromq pub/sub with persistant identities

2012-08-09 Thread Ian Barber
On Wed, Aug 8, 2012 at 10:34 PM, Ross McKillop r...@rsmck.co.uk wrote: Thanks, I was under the impression with PUSH / PULL it wouldn't retrieve messages sent when, for any reason, the PULL is down I would take a look at the guide - http://zguide.zeromq.org/page:all - and the documentation

Re: [zeromq-dev] Using zeromq pub/sub with persistant identities

2012-08-08 Thread Ian Barber
On Tue, Aug 7, 2012 at 6:16 PM, Ross McKillop r...@rsmck.co.uk wrote: Hi All, I've got a relatively simple application (i think) for zeromq. Essentially I'm trying to generate messages from X number of servers and capture them on one central one (similar to a centralised log server

Re: [zeromq-dev] Reconnection doesnt work in PUB SUB for unsafe exit

2012-08-07 Thread Ian Barber
On Tue, Aug 7, 2012 at 10:49 AM, Susan Tharakan susantharaka...@gmail.com wrote: Is this is a bug? If not, how does zeromq handle scenarios where publishers can go down unexpectedly. I shall post the small test code I used to recreate this problem if required. Could be the subscription not

Re: [zeromq-dev] Announcing release 1.2.0 of CZMQ

2012-08-06 Thread Ian Barber
On Mon, Aug 6, 2012 at 7:25 AM, Pieter Hintjens p...@imatix.com wrote: Hi all, I've cut a version 1.2.0 release for CZMQ. 1.2! Congrats Pieter :) Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] [PATCH] [cppzmq] Add move constructor to message_t

2012-07-31 Thread Ian Barber
On Mon, Jul 30, 2012 at 8:55 AM, richard_new...@waters.com wrote: Hi Ian, Thanks, but merged it in where? I cannot see the changes at https://github.com/zeromq/cppzmq. So I am clear, what is the protocol for submitting patches? Should I be sending the patch to the list for review as well

Re: [zeromq-dev] [PATCH] [cppzmq] Add move constructor to message_t

2012-07-27 Thread Ian Barber
On Fri, Jul 27, 2012 at 8:03 AM, Pieter Hintjens p...@imatix.com wrote: Hi Richard, The process for contributions is described here: http://www.zeromq.org/docs:contributing Basically you want to make github pull requests against the cppzmq project. Hi Pieter, He both pull reqed and send a

Re: [zeromq-dev] looking inside ZMQ queue

2012-07-27 Thread Ian Barber
On Fri, Jul 27, 2012 at 6:26 PM, diffuser78 diffuse...@gmail.com wrote: What I want to know is that, ZMQ might have returned success upon buffering the message. But what if message is still in the queue and has not been delivered to the receiver for some reasons (say slow receiver). Is there a

Re: [zeromq-dev] ZMQ_MCAST_LOOP with PGM

2012-07-26 Thread Ian Barber
On Thu, Jul 26, 2012 at 4:27 PM, Pierre Ynard linkfa...@yahoo.fr wrote: Anyway, is it safe to enable this option if I don't mind about reliability? I'm sure Steve can give a better answer, but basically multicast loopback just doesn't work very well at all, and causes a lot of confusion

Re: [zeromq-dev] A query about implementing aborts in request reply broker

2012-07-18 Thread Ian Barber
On Mon, Jul 16, 2012 at 11:17 AM, aalok sood aa...@ideadevice.com wrote: Thanks for your suggestion Ian. I have a similar model in place, but the issue is how do I find out how many responses are going to come in on my pull socket. In essence, can I somehow find out how many backend workers

Re: [zeromq-dev] A query about implementing aborts in request reply broker

2012-07-15 Thread Ian Barber
On Sat, Jul 14, 2012 at 7:52 PM, aalok sood aa...@ideadevice.com wrote: I have a request reply broker and it does the job really well. Now if I want to tell my workers to abort a bunch of these requests, based on some request parameter. For this I can use a pub-sub, but how do I collect the

Re: [zeromq-dev] Broadcasting with a Router ?

2012-07-13 Thread Ian Barber
On Fri, Jul 13, 2012 at 11:05 AM, Grégoire Passault g.passa...@gmail.comwrote: Yes but a subscriber can't send any message, right? Greg Well, technically they can send subscribe messages on 3.1+, but that is probably pushing it too far :) Ian ___

Re: [zeromq-dev] web based client without flash

2012-07-11 Thread Ian Barber
On Wed, Jul 11, 2012 at 8:04 PM, Midek mid...@gmail.com wrote: Hello Everybody, we would like to use 0MQ for new projects. It should server client architecture for local and remote connection. The only problem is that one of the clients should be web based, implemented in javascript later

Re: [zeromq-dev] daily build cluster question

2012-07-11 Thread Ian Barber
On Wed, Jul 11, 2012 at 11:28 PM, Chuck Remes li...@chuckremes.com wrote: Who is in charge of the daily build cluster? I'd like a login to the debian linux image if that is at all possible. Thanks. cr Mikko. Ian ___ zeromq-dev mailing list

Re: [zeromq-dev] mailbox.cpp Assertion

2012-07-09 Thread Ian Barber
On Mon, Jul 9, 2012 at 7:13 PM, Thomas S Hatch thatc...@gmail.com wrote: No, I am confident that we are not passing sockets through threads or processes. Could this have anything to do with closing and re opening connections? Do you pull the FD out directly, or is this just from accessing

Re: [zeromq-dev] Notify send()er that they've hit the high water mark

2012-07-09 Thread Ian Barber
On Mon, Jul 9, 2012 at 9:24 PM, Edwin Amsler edwinams...@thinkboxsoftware.com wrote: Ideally, when a HWM condition happened, send() would return false, then I'd test EAGAIN so I could decide for myself whether I should drop the message, or retry later. With that kind of functionality, I

Re: [zeromq-dev] Notify send()er that they've hit the high water mark

2012-07-09 Thread Ian Barber
On Mon, Jul 9, 2012 at 9:29 PM, Ian Barber ian.bar...@gmail.com wrote: This is pretty much how it works with most socket types - if you use the ZMQ_NOBLOCK flag, you'll get the EAGAIN if you've hit HWM. Ian You can see all of the HWM responses here: http://api.zeromq.org/2-1:zmq-socket

Re: [zeromq-dev] mailbox.cpp Assertion

2012-07-09 Thread Ian Barber
On Mon, Jul 9, 2012 at 9:26 PM, Thomas S Hatch thatc...@gmail.com wrote: Actually, I should ask... The main issue we are seeing in here is that the SUB socket looses connection from the PUB socket when connecting over unreliable connections like the internet. Is there a way to detect if the

Re: [zeromq-dev] Using zeroMQ socket from freeradius module

2012-07-06 Thread Ian Barber
On Fri, Jul 6, 2012 at 3:11 PM, Max Kuznecov m...@mek.uz.ua wrote: Oh, sorry I forgot to mention versions: linux centos 6.2, zeromq 2.2.0 Is the context created in the process before the fork happens? Might be worth trying moving where the context and socket are created - it can be tricky

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-05 Thread Ian Barber
On Thu, Jul 5, 2012 at 11:53 PM, Mark Farnan mark.far...@petrolink.comwrote: Correct, What I am after is a bit different. I am looking for using Websockets as native transport, machine to machine running ZeroMQ natively at each end, across firewalls. For our case we can't rely on a TCP

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-04 Thread Ian Barber
On Wed, Jul 4, 2012 at 7:30 PM, Mark Farnan mark.far...@petrolink.comwrote: Howdy all, ** ** I’m evaluating zeroMQ, and one main criteria we have is to support Websockets for client to server communications. ** ** Has there been any work on making a native Websocket transport

Re: [zeromq-dev] (py)zmq, fork and cloexec

2012-06-20 Thread Ian Barber
On Tue, Jun 19, 2012 at 3:06 PM, Christian Heimes li...@cheimes.de wrote: ZMQ already has an extensive usage of file descriptors. Some may even they it creates FDs like crazy. Without CLOEXEC all child processes inherit the FDs from their parent process, therefore increasing the total amount

Re: [zeromq-dev] Profiling and 0mq

2012-06-19 Thread Ian Barber
On Tue, Jun 19, 2012 at 7:44 AM, Paul Colomiets p...@colomiets.name wrote: I mean not being able to retry after EINTR is a bug. You should probably just implement retrying, and make a pull request. Its only few lines of code. He's referring the supplied perf tests not handling EINTR I

Re: [zeromq-dev] ZMQ_FAIL_UNROUTABLE functionality change / BC

2012-06-18 Thread Ian Barber
On Sun, Jun 17, 2012 at 7:29 PM, Paul Colomiets p...@colomiets.name wrote: I think that documenting Never use this option if you don't know the internals of your reactor might help. But it looks strange. But without it people may submit a bugs like zeromq eats 100% cpu. Definitely adding

[zeromq-dev] ZMQ_FAIL_UNROUTABLE functionality change / BC

2012-06-17 Thread Ian Barber
Hi all, This is re: https://github.com/zeromq/libzmq/pull/383 I just merged in a commit from Andrey that changes the behavior of the ZMQ_FAIL_UNROUTABLE sockopt - it is renamed to ZMQ_ROUTER_BEHAVIOR (though with the same value), and now causes an EAGAIN rather than EHOSTUNREACH. I believe this

Re: [zeromq-dev] failure in build from head

2012-06-13 Thread Ian Barber
On Wed, Jun 13, 2012 at 12:10 PM, Brian Knox bri...@talksum.com wrote: Good morning gang. I just wanted to report a failure in zeromq building from head as of this morning: == ERROR: A failure occurred in build(). Aborting... Ah, forgot a header on the test, 1 tic. Ian

Re: [zeromq-dev] failure in build from head

2012-06-13 Thread Ian Barber
On Wed, Jun 13, 2012 at 12:18 PM, Ian Barber ian.bar...@gmail.com wrote: On Wed, Jun 13, 2012 at 12:10 PM, Brian Knox bri...@talksum.com wrote: Good morning gang. I just wanted to report a failure in zeromq building from head as of this morning: == ERROR: A failure occurred in build

Re: [zeromq-dev] zeromq and libuv

2012-06-13 Thread Ian Barber
On Wed, Jun 13, 2012 at 4:16 PM, Tore Halvorsen tore.halvor...@gmail.comwrote: Since I'm stuck on windows, zmq really only delivers high performance on inproc sockets. The TCP sockets uses windows' really slow select, so they are slightly more limited. I'm not sure about the IPC sockets,

Re: [zeromq-dev] Coverity Analysis for 0MQ

2012-06-10 Thread Ian Barber
On Sat, Jun 9, 2012 at 6:10 PM, Noah Gibbs n...@ooyala.com wrote: As the subject suggests, it is a simple matter of having some official project contacts, that can be put forward to Coverity, who'll presumably help us get on their scan roster. Sounds like it's a great idea - do you

Re: [zeromq-dev] inter-thread push and pull

2012-06-08 Thread Ian Barber
On Fri, Jun 8, 2012 at 1:58 AM, Steven McCoy steven.mc...@miru.hk wrote: This is mentioned in the guide: In theory with ØMQ sockets, it does not matter which end connects, and which end binds. With inter-thread sockets I must have the bound socket up before the connecting client. The

Re: [zeromq-dev] Message delivery and DoS

2012-06-01 Thread Ian Barber
On Thu, May 31, 2012 at 5:50 PM, Pieter Hintjens p...@imatix.com wrote: On Thu, May 31, 2012 at 5:52 PM, Garrett Smith g...@rre.tt wrote: Is it possible with 0MQ to ever prevent DoS from attackers flooding a socket with message parts? One could add black/white listing to the TCP

Re: [zeromq-dev] 3.1 stability status

2012-06-01 Thread Ian Barber
On Fri, Jun 1, 2012 at 11:23 AM, Pierre Ynard linkfa...@yahoo.fr wrote: That's not really a source snapshot as you can't just ./configure make it; and unfortunately my sysadmin's distribution lacks recent enough autotools to bootstrap it. I had found http://snapshot.zero.mq/ but the

Re: [zeromq-dev] Round robin problems with offline servers

2012-06-01 Thread Ian Barber
On Fri, Jun 1, 2012 at 12:33 PM, Pieter Hintjens p...@imatix.com wrote: b) patch the code to provide a socket option that treats connecting as though the pipe is full. Best. Agreed - this is definitely the nice way to go. Actually I don't see the benefit of a round robin using

Re: [zeromq-dev] Round robin problems with offline servers

2012-06-01 Thread Ian Barber
OK, I've knocked up a patch that demonstrates this functionality with the use of a sockopt ZMQ_DELAY_ATTACH_ON_CONNECT - I would really appreciate a review on it, to make sure I haven't borked anything, or done something horrible with session_base_t: https://github.com/zeromq/libzmq/pull/357 The

Re: [zeromq-dev] behavior of client with blocking

2012-05-30 Thread Ian Barber
On Wed, May 30, 2012 at 9:09 AM, Arun Dobriyal arundobriyaliit...@gmail.com wrote: according to the documentation if no flag is set, this client socket would block, now does that mean, that the code would block at the line where i am calling zmq_send ? If yes, can this behavior be changed

Re: [zeromq-dev] behavior of client with blocking

2012-05-30 Thread Ian Barber
On Wed, May 30, 2012 at 11:37 AM, Arun Dobriyal arundobriyaliit...@gmail.com wrote: Thanks Ian Not quite - the send() would not block as the PUSH side would have no queue, so the message would go into the socket queue, and then into the TCP buffer. The socket queue that you mentioned,

Re: [zeromq-dev] Messages not delivered

2012-05-28 Thread Ian Barber
On Mon, May 28, 2012 at 12:17 PM, Arun Dobriyal arundobriyaliit...@gmail.com wrote: The code snipper for the client and server is attached in this pastebin page.. for server: http://pastebin.com/0nxBEhnK for client: http://pastebin.com/2xJxZqnu Thanks Arun You're using REQ/REP, which

Re: [zeromq-dev] Messages not delivered

2012-05-28 Thread Ian Barber
On Mon, May 28, 2012 at 1:11 PM, Arun Dobriyal arundobriyaliit...@gmail.com wrote: Thanks Ian and Ali , that helped.. @Ian: If I want multiple clients to push msgs to the server (asynchronously add their msgs in the common queue to the server) , then would PULL for server and PUSH for

Re: [zeromq-dev] several binds on the same ipc

2012-05-25 Thread Ian Barber
On Fri, May 25, 2012 at 8:27 AM, Tarek Ziadé ta...@ziade.org wrote: If this is indeed the behavior, it sounds like a bug. The code should maybe check first off that the IPC endpoint isn't already used. Or perhaps there's an error that's not being checked. So here's the C demo Benjamin

Re: [zeromq-dev] Hanging on Hello World

2012-05-09 Thread Ian Barber
On Wed, May 9, 2012 at 10:09 AM, Luke Segars lu...@eecs.berkeley.eduwrote: I'm having trouble running the hello world code for the Python 0MQ bindings: http://zguide.zeromq.org/py:hwclient. It appears to be hanging after sending the first hello. The C++ hello world is running in to the same

Re: [zeromq-dev] basic question on queue workflow

2012-05-04 Thread Ian Barber
On Fri, May 4, 2012 at 2:40 PM, Whit Armstrong armstrong.w...@gmail.comwrote: Am I looking at this the right way? I'm using non-durable sockets, so if the client dies, and reconnects it should have a new socket id, right? That's right, everything you've said sounds correct - it should

Re: [zeromq-dev] (Fwd) [crossroads-dev] [PATCH] Correct handling of connect() errors in tcp, ipc_connecter_t

2012-05-03 Thread Ian Barber
On Thu, May 3, 2012 at 12:46 PM, Martin Lucina mar...@lucina.net wrote: Hi, FYI, the patch below is for an old bug, also affects ZeroMQ 3.1.0 and 2.1.11 (based on the last released versions I have local copies of, I can't seem to access GH from here). -mato Thanks Mato! I'll GHify. Ian

Re: [zeromq-dev] (Fwd) [crossroads-dev] [PATCH] Correct handling of connect() errors in tcp, ipc_connecter_t

2012-05-03 Thread Ian Barber
On Thu, May 3, 2012 at 2:37 PM, Pieter Hintjens p...@imatix.com wrote: On Thu, May 3, 2012 at 1:46 PM, Martin Lucina mar...@lucina.net wrote: Hi, FYI, the patch below is for an old bug, also affects ZeroMQ 3.1.0 and 2.1.11 (based on the last released versions I have local copies of, I

Re: [zeromq-dev] zmq_poll loop break; performance

2012-05-01 Thread Ian Barber
On Tue, May 1, 2012 at 5:20 PM, Daniel Krikun krikun.dan...@gmail.comwrote: About 2-3 seconds delay. Don't know whether it is dependent on number of message dispatched, I'd tried in a pilot only, which was about 20 messages. Can you tell where it's being slow - is it happening before the

Re: [zeromq-dev] Meetup in Chicago on May 19th

2012-04-27 Thread Ian Barber
On Thu, Apr 26, 2012 at 7:26 PM, Pieter Hintjens p...@imatix.com wrote: So how about a Sunday morning brunch meetup to continue? -Pieter Sounds sensible! Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] Meetup in Chicago on May 19th

2012-04-26 Thread Ian Barber
On Wed, Apr 25, 2012 at 6:36 PM, Tom Cocagne tom.coca...@gmail.com wrote: When: May 19th, 2012 at 10am If you're interested in attending or (even better!) presenting please register at: http://www.zeromq.org/event:chicago-2012-05 Ooh, I'm flying in to Chicago on the 19th, should be there

[zeromq-dev] Fwd: [libzmq] Atomic operations for armv7a (#322)

2012-04-24 Thread Ian Barber
-72449c8da2648442ec257fb7508ee2e07f8439d3-210...@reply.github.com Date: Tue, Apr 24, 2012 at 6:15 PM Subject: [libzmq] Atomic operations for armv7a (#322) To: Ian Barber ian.bar...@gmail.com This commit implements atomic operations for the armv7a architecture using gcc inline assembly. This offers higher performance compared

Re: [zeromq-dev] Fwd: [libzmq] Atomic operations for armv7a (#322)

2012-04-24 Thread Ian Barber
On Tue, Apr 24, 2012 at 9:24 PM, Pieter Hintjens p...@imatix.com wrote: Yes, nice improvement in performance... Just reading back realised what I put made no sense - what I was shooting for was just to get some more eyeballs on it, as I have no real clue whether it's good or not! So, thanks

Re: [zeromq-dev] Strangeloop conference

2012-04-20 Thread Ian Barber
On Fri, Apr 20, 2012 at 1:57 AM, Pieter Hintjens p...@imatix.com wrote: Hi Michel, Nice catch. I've submitted a talk on Software Architecture using ZeroMQ. -Pieter Looks like a really good conference - some of the videos from last year were online, and I was thinking of submitting too.

Re: [zeromq-dev] Dropping connection end points dynamically

2012-04-19 Thread Ian Barber
On Wed, Apr 18, 2012 at 8:23 PM, Radha Krishna Srimanthula srimanthula.radhakris...@gmail.com wrote: I plan to create the socket, manage the end points and do the pub-sub communication in three different threads. For various legacy reasons, I need to use the existing threading model -based on

Re: [zeromq-dev] [ANNOUNCE] paperjam -- device implementation for zeromq and crossroads

2012-04-18 Thread Ian Barber
On Tue, Apr 17, 2012 at 11:40 PM, Paul Colomiets p...@colomiets.namewrote: Hi, We are searching for a long time for a replacement of the devices from early zeromq2.x. Here is my answer. https://github.com/tailhook/paperjam Very nice Paul! Is python just used here for the build and the

Re: [zeromq-dev] error report

2012-04-18 Thread Ian Barber
On Tue, Apr 17, 2012 at 11:04 PM, Christina Cacioppo c...@christinacacioppo.com wrote: not sure if this is actually helpful, but as asked -- scout:~ christinacacioppo$ cd zeromq-2.2.0/ Some of the perf tests hit the open file limit on mac: http://www.zeromq.org/docs:tuning-zeromq To quote:

Re: [zeromq-dev] drop oldest

2012-04-12 Thread Ian Barber
On Thu, Apr 12, 2012 at 9:11 AM, Pieter Hintjens p...@imatix.com wrote: It's an old discussion; dropping the oldest message for PUB-SUB would be more logical than dropping the newest, but it was always considered too hard to do. If you want to try it, and send a patch, people would appreciate

Re: [zeromq-dev] sending possibly not crossplatform patches

2012-04-04 Thread Ian Barber
On Wed, Apr 4, 2012 at 3:49 PM, Sergey Hripchenko shripche...@intermedia.net wrote: Is it worth doing to send you patches that are not cross-platform(not even tested) (like for example implementation of ‘TCP keep-alives configuration’ via setsockopt() differs for almost each platform)

Re: [zeromq-dev] Backport of ZMQ_RCVTIMEO/ZMQ_SNDTIMEO to 2.1.x

2012-04-03 Thread Ian Barber
On Tue, Apr 3, 2012 at 7:21 PM, Chuck Remes li...@chuckremes.com wrote: Sure, they want fixes in 2.1 because 3.1 sounds like a big leap. There actually is quite a bit of new and different code in the 3.1 branch, so I can sympathize. What I *do not understand* is this insistence that fixes and

Re: [zeromq-dev] assertion in mailbox.cpp:84

2012-03-30 Thread Ian Barber
On Fri, Mar 30, 2012 at 10:50 AM, Mikhail Navernyuk mike.nav...@gmail.comwrote: The application repeatedly sends data through PUB socket and never receives any messages. -Mikhail Navernyuk Can you create a small programme that repeatably demonstrates the issue? Ideally in C. It'll make it

Re: [zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Ian Barber
On Wed, Mar 28, 2012 at 1:45 PM, Max nas...@gmail.com wrote: Hi, has anyone had success in connecting via Javascript using Websockets to a serverside PHP ZeroMQ socket/server? Basically I am using Rasmus server code from http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html

Re: [zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Ian Barber
On Wed, Mar 28, 2012 at 4:50 PM, Dan Fairs dan.fa...@gmail.com wrote: I've used node.js with socket.io as a gateway between the browser and a 0mq network. That said... Both good suggestions, I'd forgotten completely about Paul's bridge. On the node/sockio/zmq/php route, igor had a good (and

Re: [zeromq-dev] Event-driven publish-subscribe model

2012-03-26 Thread Ian Barber
On Mon, Mar 26, 2012 at 4:42 PM, Chuck Remes li...@chuckremes.com wrote: That is a far better mechanism than the built-in HWM mechanism. Since it isn't built in to the library, you would have to add this logic at the application level. Since it *requires* two-way communication between the

Re: [zeromq-dev] Event-driven publish-subscribe model

2012-03-26 Thread Ian Barber
On Mon, Mar 26, 2012 at 5:53 PM, Chuck Remes li...@chuckremes.com wrote: Yes, this is true. I answered assuming that the OP wanted to work with just a single set of sockets rather than having a side channel for communicating the credit flows. Either way will work, so it's up to the OP to

Re: [zeromq-dev] Duplicate identities - #325

2012-03-23 Thread Ian Barber
On Fri, Mar 23, 2012 at 10:45 PM, Pieter Hintjens p...@imatix.com wrote: My fix is to allow this (and not assert!) so that the second client's identity request will be ignored. This means a well-behaving client and server can't be disturbed by an incorrect or hostile client. Great, thanks,

Re: [zeromq-dev] PULL socket and source

2012-03-15 Thread Ian Barber
On Thu, Mar 15, 2012 at 12:14 PM, Boris Gulay bo...@boressoft.ru wrote: For PULL socket type I can have more than one PUSH peer. Is there any way to know source of message received by PULL socket (IP-address of remote side or something else)? Add a source message part or similar in the

Re: [zeromq-dev] PULL socket and source

2012-03-15 Thread Ian Barber
On Thu, Mar 15, 2012 at 12:39 PM, Boris Gulay bo...@boressoft.ru wrote: It means that sending part should add some data to message body. So, there is no way to get source IP address on receiving side from ZeroMQ layer? That's correct. Ian ___

Re: [zeromq-dev] ZeroMQ 2.1.11 class diagram

2012-03-15 Thread Ian Barber
On Thu, Mar 15, 2012 at 1:20 PM, William Brown william.br...@ericsson.comwrote: ** Can somebody send me this diagram directly instead of as an embedded object? I can see it in the e-mail, but I can't expand it to read it :-( Thanks --Corey (william.br...@ericsson.com) Is

Re: [zeromq-dev] v3.1 publisher filtering

2012-03-14 Thread Ian Barber
On Wed, Mar 14, 2012 at 1:31 AM, Joshua Foster jhaw...@gmail.com wrote: PUB functions the same in 3.1 as 2.1, but XPUB actually does publisher side filtering. (if I read the code correctly) Joshua Don't think you did Joshua - they both use the same distribution code (dist/send to

Re: [zeromq-dev] Using 0mq in a Web application

2012-03-14 Thread Ian Barber
On Wed, Mar 14, 2012 at 2:41 AM, David Mitchell jdavidmitch...@gmail.comwrote: Is is possible when running a PHP script under mod_php or CGI and an Apache Web server to bind or connect to a TCP or IPC socket? I can bind and connect when using the PHP CLI, but the connection just hangs when

Re: [zeromq-dev] v3.1 publisher filtering

2012-03-13 Thread Ian Barber
On Tue, Mar 13, 2012 at 1:06 PM, Steve steve.frien...@gmail.com wrote: Joshua, thanks, that clears it up. The v3.1 XPUB / XSUB keeps the system really scalable and efficient if you have cascading publishers / subscribers. However, the last leg to the subscriber is still going to have

Re: [zeromq-dev] Socket.connect doesn't raise any error

2012-03-06 Thread Ian Barber
On Tue, Mar 6, 2012 at 9:37 AM, Pazzo Da Legare pazzodaleg...@gmail.comwrote: Dear all, I'm playing with zmq binding for python, with PUSH/PULL socket. How can I get an error if connect fails? ZeroMQ will just retry the connection for you, so you don't get a message if the connection is

[zeromq-dev] LIBZMQ-325 - Crash on two sockets with same identity

2012-03-02 Thread Ian Barber
I've been looking at this issue (https://zeromq.jira.com/browse/LIBZMQ-325) a little, and it looks to me like a race condition between the reaper thread and the remote shutdown process if you connect two sockets with the same identity and close them at about the same time. Because the closing is

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

2012-03-01 Thread Ian Barber
On Thu, Mar 1, 2012 at 10:44 AM, Antonio Teixeira eagle.anto...@gmail.comwrote: Hello Ian And Others , thanks for your answer .. 1) Will using LINGER actually cause message to be lost on a shutdown , since the memory will actually get dumped on timeout. Im looking for something that i can

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

2012-03-01 Thread Ian Barber
On Thu, Mar 1, 2012 at 3:51 PM, john skaller skal...@users.sourceforge.netwrote: A server must actually shutdown the reader, loop or poll for a read of EOF, then close the socket. Reading EOF on a shutdown receiver appears to be the only way to ensure delivery of transmitted data. The

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

2012-02-29 Thread Ian Barber
On Wed, Feb 29, 2012 at 5:31 PM, Antonio Teixeira eagle.anto...@gmail.comwrote: Hello. Is there are options / best pratices to prevent message lost like : Close External Socket , Drain All the Message Outbound / Inbound inside the devices and let the workers close ? Look at the ZMQ_LINGER

Re: [zeromq-dev] Getting 0MQ/3.1 to stable status

2012-02-28 Thread Ian Barber
On Tue, Feb 28, 2012 at 9:50 PM, Schmurfy schmu...@gmail.com wrote: If the bug I reported is confirmed by someone else It should be considered a blocker too, being able to crash any zeromq server is nothing less than critical for me. Yep, I've confirmed that and attached a testcase that uses

Re: [zeromq-dev] Assertion failed: new_max - new_min + 1 1 (mtrie.cpp:246)

2012-02-27 Thread Ian Barber
On Mon, Feb 27, 2012 at 10:54 AM, Staffan Gimåker staf...@spotify.comwrote: I'm guilty of this, shame on me. Pull requested for fix. I'll do some hammering on it to make sure it doesn't misbehave. /S That pull is merged, so please update and retest Javier. Ian

Re: [zeromq-dev] Getting 0MQ/3.1 to stable status

2012-02-27 Thread Ian Barber
On Sat, Feb 25, 2012 at 1:29 PM, Schmurfy schmu...@gmail.com wrote: Can anyone confirm https://zeromq.jira.com/browse/LIBZMQ-325 ? Just to be sure I am not the only one with this bug. One other that just got raised that should probably be on the blocker list -

Re: [zeromq-dev] Getting 0MQ/3.1 to stable status

2012-02-27 Thread Ian Barber
On Mon, Feb 27, 2012 at 7:36 PM, Pieter Hintjens p...@imatix.com wrote: On Mon, Feb 27, 2012 at 7:36 AM, Ian Barber ian.bar...@gmail.com wrote: One other that just got raised that should probably be on the blocker list - https://zeromq.jira.com/browse/LIBZMQ-328 I just edited it and made

<    1   2   3   4   >