Re: [zeromq-dev] Guide is gone

2014-12-23 Thread Ian Barber
Working here. Maybe a transient issue? On 23 December 2014 at 21:26, Bob Clarke wrote: > > http://zguide.zeromq.org/page:all is returning a blank page > > Bob > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/

Re: [zeromq-dev] Router drops empty first frame on inproc://

2014-02-06 Thread Ian Barber
On 6 Feb 2014 11:22, "Goswin von Brederlow" wrote: > Could you write the identity message to the pipe first, or a dummy > message. And then when the connect executes you fill in / swap the > dummy for the real identity message? > The tricky thing is that we don't know if we need to until we have

Re: [zeromq-dev] Router drops empty first frame on inproc://

2014-02-04 Thread Ian Barber
the 3rd message written into the pipe. That is quite a tricky one to resolve! I guess we could unwrite() the messages from the pipe, buffer them up, write the new one, and carry on that way, but that is potentially a bunch of copying. On 4 February 2014 22:41, Ian Barber wrote: > Not sure t

Re: [zeromq-dev] Router drops empty first frame on inproc://

2014-02-04 Thread Ian Barber
Not sure that codes the root cause there, though it may be swallowing the part its been around for a while. Suspicious its the changes to allow connect before bind on inproc playing badly with something, Worth a look to see if its the recv_identity type options not being picked up properly in ctx:c

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

2013-12-27 Thread Ian Barber
Part of the difficulty with that is providing usable guarantees - for example, a fair chunk of messages might be buffered in the TCP send or recv buffers, particularly with small messages. It is relatively straightforward to set HWM to 1 (or some other small number) and implement a queue prior to s

Re: [zeromq-dev] ZeroMQ/4.0.0 rc1 is now available

2013-09-21 Thread Ian Barber
Awesome stuff, great job all, and thanks for wrangling the release Pieter! Ian On 20 September 2013 16:23, Pieter Hintjens wrote: > On Fri, Sep 20, 2013 at 5:18 PM, AJ Lewis wrote: > > > Ignore that - it was user error: I accidentally ran two builds in the > same > > shared directory. > > You

Re: [zeromq-dev] ZMQ_ROUTER internals

2013-09-03 Thread Ian Barber
It's a std:map with an optimised key type for comparisons. All be equal, shorter should be slightly better, though I can't imagine there's a great deal in it. On Tue, Sep 3, 2013 at 2:41 AM, A. Mark wrote: > > I hope I'm not asking a redundant question and I haven't the time to look > at the ZM

Re: [zeromq-dev] Mountain Lion build issues: strndup error, and 'make check' gave "1 of 20 tests failed" on test_shutdown_stress

2013-09-02 Thread Ian Barber
Note that on mac we run into the rather small default ulimit a lot: http://zeromq.org/docs:tuning-zeromq - it could be that effecting test_shutdown_stress, hence the standard advice to increase it. Ian On Mon, Sep 2, 2013 at 11:53 PM, Matt Connolly wrote: > I'm getting intermittent failures in

Re: [zeromq-dev] SCTP for ØMQ

2013-08-19 Thread Ian Barber
That's awesome Michael! Re coding standard: http://zeromq.org/docs:style - in general, follow the conventions that are there. To get started, I'd recommend copying tcp_* - look at where they are called from and you should be able to get started with your new transport pretty quickly - beyond set

Re: [zeromq-dev] How to do "free()" in a non-c environment ?

2013-08-19 Thread Ian Barber
The binding should take care of that - if the calling language automatically manages memory, it shouldn't need to care. In your binding I would allocate memory using whatever the normal process is in that language, so that it is garbage collected. Ian On Mon, Aug 19, 2013 at 7:52 AM, itli...@sch

Re: [zeromq-dev] Disconnect appears not to respect linger

2013-08-17 Thread Ian Barber
On Mon, Jul 8, 2013 at 8:22 AM, Ben Gray wrote: > On 7 July 2013 20:03, Martin Hurton wrote: > >> Hi Ben, I wonder if unbind should close any connections at all. The >> man page says it just closes the listener, not connections accepted by >> that listener. >> I think disconnect should respect t

Re: [zeromq-dev] non-destructive queue iterator?

2013-08-12 Thread Ian Barber
+1 to Steve's suggestion. In general, using ZeroMQ as a queue is going to run into issues, its generally better to treat them as a buffer, and build a queue yourself - then you get your own choices of logic. Ian On Mon, Aug 12, 2013 at 1:36 AM, Steven McCoy wrote: > On 9 August 2013 13:43, Mic

Re: [zeromq-dev] [RFC] Passing file descriptors as endpoints in `zmq_connect` or `zmq_bind`

2013-07-28 Thread Ian Barber
Sounds like a reasonable proposal - it would be a new handler along the lines of ipc_ or tcp_, but simpler with the checks as you describe. Would certainly be interesting to try out! Ian On Wed, Jul 24, 2013 at 1:59 PM, Ciprian Dorin Craciun < ciprian.crac...@gmail.com> wrote: > Hello all!

Re: [zeromq-dev] one android phone communicate to another using zeromq

2013-07-01 Thread Ian Barber
The IPs should match - you connect from one to the other (so you bind on one, connect to that one from the other). I would definitely recommend working through the guide a little to get the basic concepts down: http://zguide.zeromq.org Ian On Mon, Jul 1, 2013 at 9:05 PM, ashwini ramamurthy wrote

Re: [zeromq-dev] Using PHP 5.4

2013-06-25 Thread Ian Barber
5 > >> > >> I rebuilt the zeromq rpm, but I can't run phpize before because there > >> is no config.m4 in the source directory. > >> > >> [jmarcus@ohitu001 zeromq-3.2.2]$ phpize > >> Cannot find config.m4. > >> Make sure that you ru

Re: [zeromq-dev] Using PHP 5.4

2013-06-24 Thread Ian Barber
5.4.16 and then installed it > on my build server and then created the ZeroMQ binaries. I'll give it > another go incase I did something out of order. > > Thanks > James > > On Mon, Jun 24, 2013 at 11:45 AM, Ian Barber wrote: > > You'll need to build php-zmq

Re: [zeromq-dev] Using PHP 5.4

2013-06-24 Thread Ian Barber
You'll need to build php-zmq with the version you're running - looked like the ZMQ extension was built with an older version of PHP. Ian On Mon, Jun 24, 2013 at 4:36 PM, James Marcus wrote: > Hi, > I have compiled my own PHP version, 5.4.16 and ZeroMQ 3.2.2, and > rolled my own RPMs. When I st

Re: [zeromq-dev] CURVE security on master

2013-06-20 Thread Ian Barber
Very cool! Great work guys. Ian On Thu, Jun 20, 2013 at 5:37 PM, Pieter Hintjens wrote: > Hi all, > > A heads-up that we now have CURVE security partially working on libzmq > master. > > This implements these RFCs: > > * http://rfc.zeromq.org/spec:25/CURVE mechanism > * http://rfc.zeromq.org/s

Re: [zeromq-dev] Topics for ZMTP 3.0

2013-06-10 Thread Ian Barber
On Mon, Jun 10, 2013 at 5:41 PM, Ciprian Dorin Craciun < ciprian.crac...@gmail.com> wrote: > > As such I'm only saying that by making the identity mandatory (at > least in a couple of sockets, or even in the others as seen from the > second example) can only make the protocol more robust. > >

Re: [zeromq-dev] What is the exact issue with enabling MULTICAST_LOOP on ZMQ sockets?

2013-06-10 Thread Ian Barber
On Mon, Jun 10, 2013 at 6:02 PM, Parag Patel wrote: > Thanks for the info Steven. In your email previous to this, you > provided a preferred solution. Would this work if there are multiple > processes that want to send on the same pgm + ipc channel? > PGM in ZMQ is for single-publisher scenari

Re: [zeromq-dev] ZMTP 3.0 Status: Sharing Single TCP connection (Example code ?)

2013-06-07 Thread Ian Barber
On Fri, Jun 7, 2013 at 10:25 PM, Justin Karneges wrote: > > Hmm, wouldn't multiplexing defeat the handy queuing & back-pressure > behavior provided by TCP? > > Justin Depends on the workload. You'll get better congestion management and pay relatively less for connection setup and slow start for

Re: [zeromq-dev] TCP Based Message Bus

2013-05-11 Thread Ian Barber
Sounds pretty sensible. You might want to consider having separate repairers from the publishers, particular if you have a bursty source of messages. Then if a subscriber can't keep up they can go to the repairer without effecting the publisher. Being smart about the batching as well can make the

Re: [zeromq-dev] MQTT protocol

2013-04-29 Thread Ian Barber
MQTT is designed to have a lightweight implementation on low power embedded devices. Uses TCP for transport, always PUB/SUB, always with a broker. It has a pretty lightweight wire protocol, and some nice features for dealing with flaky networks (like a last will and testament message that automatic

Re: [zeromq-dev] Unable to load dynamic library (Previous one was accidently sent)

2013-04-24 Thread Ian Barber
Looks like a problem with the version of zeroMQ it is pointing to. What versions of the lib and extension are you on? Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] zmq_recv not firing while messages are being produced

2013-04-15 Thread Ian Barber
You should check the return value of those calls to zmq_bind, zmq_connect etc. Try 127.0.0.1 instead of localhost, you're probably getting ENODEV on the bind. Ian On Mon, Apr 15, 2013 at 1:03 PM, Lucas Maxwell wrote: > Hi, > > I'm working on a some code that generates a large volume of data an

Re: [zeromq-dev] ZeroMQ developers' meetup, Brussels, June

2013-04-14 Thread Ian Barber
Sounds like fun! Have to find a place for goat in the evening :) Ian On Thu, Apr 11, 2013 at 2:56 PM, Pieter Hintjens wrote: > Hi all, > > We're organizing a ZeroMQ developers' meetup in Brussels in June. The > proposed dates are 21/22 June, with the first day for talks, and the > second day f

Re: [zeromq-dev] pushpin

2013-04-10 Thread Ian Barber
On Tue, Apr 9, 2013 at 11:46 AM, Justin Karneges wrote: > Hi people, > > My Pushpin project seems to be getting a lot of attention on HackerNews: > https://news.ycombinator.com/item?id=5516568 > > I just wanted to mention that under the hood it's a multiprocess ZeroMQ > architecture. Thanks again

Re: [zeromq-dev] London ~ April 30th

2013-04-05 Thread Ian Barber
On Fri, Apr 5, 2013 at 4:15 PM, Brian Knox wrote: > I'm coming to London to speak at a conference around April 30th - just > wondering if there's any zeromq meetups going on around that time frame > since I'll be in the area. > > Brian > There's a meetup on the 16th - http://www.meetup.com/ZeroM

Re: [zeromq-dev] OpenWRT dev with ZMQ

2013-03-30 Thread Ian Barber
On Sat, Mar 30, 2013 at 2:26 AM, Victor Perron wrote: > > - a collection of package Makefiles for OpenWRT builds (zeromq, czmq, > filemq, zyre) > https://github.com/vperron/openwrt-zmq-packages > > - a remote management daemon whose internals are almost 100% zmq-based > (prealpha) > https://gith

Re: [zeromq-dev] Dealer-Router in C++

2013-03-26 Thread Ian Barber
On Tue, Mar 26, 2013 at 9:36 PM, West Madison <8429oakm...@gmail.com> wrote: > Hi Gurus, > I am new to this forum and learning stuffs. I am using 0mq 3.2.2. > Could you please share simple dealer router example in a single thread in C > or C++ ? Thanks in advance. > Lots of examples in the g

Re: [zeromq-dev] Felix Geisendörfer's "hack", C4 process

2013-03-21 Thread Ian Barber
On Thu, Mar 21, 2013 at 1:45 PM, Pieter Hintjens wrote: > > "Thanks for your pull request. Would you like to join the Maintainers' > team so you can also help review and merge other peoples' pull > requests? If so, could you read http://rfc.zeromq.org/spec:22 and > confirm that you understand this

Re: [zeromq-dev] Felix Geisendörfer's "hack", C4 process

2013-03-21 Thread Ian Barber
On Wed, Mar 20, 2013 at 2:34 PM, Pieter Hintjens wrote: > Hi, > > You might have seen Felix's "pull request hack": > http://felixge.de/2013/03/11/the-pull-request-hack.html > > We've been using something similar (C4) in libzmq and other projects > for a while. > > Do people have opinion on whethe

Re: [zeromq-dev] Blocking instead of Dropping PUB Socket

2013-02-27 Thread Ian Barber
On Tue, Feb 26, 2013 at 2:37 AM, Yucheng Low wrote: > > Initial testing suggests that it seems to work fine, allowing all > subscribers to receive every message regardless of the hwm. A limitation is > that I cannot use zmq_poll to test if the PUB socket is writeable. (A > conservative option is

Re: [zeromq-dev] Pub/Sub message loosing

2013-02-20 Thread Ian Barber
On Wed, Feb 20, 2013 at 8:00 AM, Erwin Karbasi wrote: > Hello Experts, > > We've ran a light POC with java binding zeromq for pub/sub paradigm and > figured out that there were tremendous messages were lost, that is, the sub > didn't receive them. > This is normal in the state of hitting the HW

Re: [zeromq-dev] Distributed Event Bus

2013-02-19 Thread Ian Barber
On Tue, Feb 19, 2013 at 9:07 PM, Pieter Hintjens wrote: > Yes, events != state. In fact Zyre is already a distributed event bus > that can scale to about 100 peers (from experience) on WiFi, and a bit > more than that on a LAN. Persistence and consistency are quite another > story. > > -Pieter

Re: [zeromq-dev] A C example using Zero-mq

2013-02-16 Thread Ian Barber
On Sat, Feb 16, 2013 at 7:13 AM, Ajith Adapa wrote: > Hi, > > Anyone used the C bindings for zero-mq and have a sample example to share > ?? > > I would like to make a try. > > Regards, > Ajith > http://zguide.zeromq.org/ is packed with examples! Ian

Re: [zeromq-dev] zguide-master/examples/C++/identity hangs

2013-02-13 Thread Ian Barber
On Tue, Feb 12, 2013 at 3:00 PM, Jeff Franks wrote: > The identity example in zguide works differently for C and C++ bindings.** > ** > > This does not seem like the expected behavior. Is there a fix? > Looks like a bug somewhere in the examples. It's an odd one though, code looks all right to m

Re: [zeromq-dev] zguide-master/examples/C++/mtserver.cpp does not compile

2013-02-13 Thread Ian Barber
On Tue, Feb 12, 2013 at 5:45 PM, Jeff Franks wrote: > The compiler does not resolve zmq::device on line 52 of mtserver.cpp > > ** ** > > Is there a work-around? > > > Ah yes, looks like cppzmq didn't get that reverted. I just merged in a PR from John Swinbank with it, so if you pull the h

Re: [zeromq-dev] First try - Java client, CPP server

2013-02-13 Thread Ian Barber
On Mon, Feb 11, 2013 at 6:40 AM, Deepak Jharodia wrote: > Hi, > > I'm starting with ZMQ and created my first program. The client is in Java > and server in CPP, using respective bindings. I have three questions: > 1) I want client to connect only if server is running(on that IP). Right > now, clie

Re: [zeromq-dev] Pings get dropped for certain listeners in the Forwarder pattern

2013-02-10 Thread Ian Barber
On Thu, Feb 7, 2013 at 4:16 PM, Varun Vijayaraghavan wrote: > > >- whether you're losing one in every two messages, or bursts of messages. > When the throughput decreased, I noticed that the messages were getting > delayed almost consistently between 300 - 400 seconds. Pretty certain that > this t

Re: [zeromq-dev] Assertion failed: check () (msg.cpp:207)

2013-02-10 Thread Ian Barber
On Sat, Feb 9, 2013 at 5:05 PM, Alexander Schumskich < alexander.schumsk...@googlemail.com> wrote: > I have a C application talking to a java server over zeromq / protobuf. > The server is pretty mucht he same as in the examples ( > https://github.com/imatix/zguide/blob/master/examples/Java/asyncs

Re: [zeromq-dev] 1 of 19 failed on make check

2013-02-08 Thread Ian Barber
On Fri, Feb 8, 2013 at 7:22 PM, Jeff Franks wrote: > make-check log is attached showing 1 of 19 failed. > > This is my first install of zeromq and my expectation was that all tests > would pass. > > ** ** > > Is this particular failure something to ignore or is there something more > I mu

Re: [zeromq-dev] Delayed Reception of messages when using Multicast Method (Using PGM)

2013-02-08 Thread Ian Barber
On Fri, Feb 8, 2013 at 2:03 PM, Divya Mohan wrote: > When I tried the same with 10-20 messages I did not notice any delay or > problems. But with a large number of messages (>100) being exchanged there > is delay in the region of 20s or more!!! > > Is this an inherent flaw in zeromq/pgm ? Is there

Re: [zeromq-dev] ZMQ::LibZMQ3 Installation in windows

2013-02-08 Thread Ian Barber
> 2013/2/8 sudheer kumar > >> >> I followed http://www.zeromq.org/build:mingw for building ZMQ with MinGW >> : and I get the error: >> >> test_connect_delay.cpp:28:21 fatalerror:pthread.h: No such file or >> directory >> >> Hmm, we may have to ifdef that test out if there's no pthread on mingw -

Re: [zeromq-dev] What is exactly an empty message

2013-02-03 Thread Ian Barber
On Sunday, February 3, 2013, Majid Azimi wrote: > Hi guys, > > I'm a bit confused with examples in Code Connected book. > In the book when it want to send an empty message as delimiter frame it > uses: > > zmq_send(socket, "", 0, 0); > They're the same, an empty message is one with body length 0

Re: [zeromq-dev] fosdem meetup at 2pm bof room n2

2013-02-02 Thread Ian Barber
Which building is that in? On Saturday, February 2, 2013, Benjamin Henrion wrote: > The message is in the subject > > > -- > Benjamin Henrion > FFII Brussels - +32-484-566109 - +32-2-3500762 > "In July 2005, after several failed attempts to legalise software patents > in Europe, the patent estab

Re: [zeromq-dev] Pings get dropped for certain listeners in the Forwarder pattern

2013-01-28 Thread Ian Barber
On Mon, Jan 28, 2013 at 9:32 AM, Varun Vijayaraghavan wrote: > > On some of our processes, which incidentally run on smaller instances, we > see that the message count in the consumer suddenly drop to about 50%. This > happens once a week, and does not get fixed by itself till we restart the > cons

Re: [zeromq-dev] IPC communication between C and JAVA application

2013-01-28 Thread Ian Barber
On Mon, Jan 28, 2013 at 1:25 AM, Federico Serale wrote: > I added socket.setLinger(0) but not changed anything. > I realized that the problem is in the client because when I start the > server I see that the file is created, but when I start the client the > file is not modified. Are they starte

Re: [zeromq-dev] Meetup at FOSDEM this Saturday

2013-01-28 Thread Ian Barber
On Mon, Jan 28, 2013 at 7:24 AM, Pieter Hintjens wrote: > Hi Guys, > > Anyone coming to FOSDEM on Saturday (in Brussels) is welcome to join > the meetup we'll be holding in one of the two "spontaneous session" > rooms. Time still to be decided, it depends on availability, but we'll > aim for earl

Re: [zeromq-dev] Issue in tcp_connecter.cpp in Windows

2013-01-21 Thread Ian Barber
Ah, sorry, misread the poster :) On Mon, Jan 21, 2013 at 4:54 PM, KIU Shueng Chuan wrote: > I don't think it is an issue of exhaustion as signaler.cpp creates purely > local sockets, its address 4-tuples wouldn't overlap with those created in > tcp_connector.cpp which include a remote component.

Re: [zeromq-dev] Issue in tcp_connecter.cpp in Windows

2013-01-21 Thread Ian Barber
On Mon, Jan 21, 2013 at 4:32 PM, KIU Shueng Chuan wrote: > Ian, patch 491 fixes an assertion in signaler.cpp. > > This thread is about another assertion in tcp_connector.cpp. > > Both of them are due to re-use of sockets remaining in TIME_WAIT state. > > The first one is a Windows implementation i

Re: [zeromq-dev] Issue in tcp_connecter.cpp in Windows

2013-01-21 Thread Ian Barber
On Mon, Jan 21, 2013 at 3:06 PM, KIU Shueng Chuan wrote: > I have encountered the same assertion before too on WinXP. > > I think the "another service listening on the port" possibility would > cause an assert on a bind and not here? > > The thing is that the user app can't do anything as zmq hand

Re: [zeromq-dev] Issue in tcp_connecter.cpp in Windows

2013-01-21 Thread Ian Barber
On Mon, Jan 21, 2013 at 9:23 AM, Pau wrote: > etimes (mayby minutes, maybe hours) an error WSAEADDRINUSE happens. > In line (253) some values are checked and the error is dicarded if it is a > known error but not WSAEADDRINUSE. > // Assert if the error was caused by 0MQ bug. > // Networ

Re: [zeromq-dev] Fair Queuing on Router confusion

2013-01-20 Thread Ian Barber
On Sun, Jan 20, 2013 at 7:50 AM, Nishant Mittal wrote: > I have several clients (REQ sockets) connected to a Router device (load > balancing example from quide).. The guide says that Router sockets > fair-queue on inbound requests. so does that mean that if I have 2 REQs > connected to RTR and bo

Re: [zeromq-dev] Assertion failed: fd_table [handle_].valid in context.close()

2013-01-11 Thread Ian Barber
On Wed, Jan 9, 2013 at 5:38 PM, Jonathan Wood wrote: > I am seeing an assertion failure when shutting down my application: > > Assertion failed: fd_table [handle_].valid (devpoll.cpp:91) Looks like it could be a bug to in the lib to me - could you file an issue with what you have here over at ht

Re: [zeromq-dev] IPC address validity

2013-01-10 Thread Ian Barber
On Wed, Jan 9, 2013 at 2:52 AM, Claudio Carbone wrote: > On 08/01/13 23:25, Ian Barber wrote: > > What is the actual address you're passing which triggers the assert? > > This is the pure string: "epgm://192.168.2.113;239.192.1.1:5678\\n" > That escaped \n

Re: [zeromq-dev] IPC address validity

2013-01-08 Thread Ian Barber
On Tue, Jan 8, 2013 at 6:01 PM, Claudio Carbone wrote: > > so it appears I'm passing a wrong address. > But I'm positive the address is being passed correctly, I followed it > through every step. > What is the actual address you're passing which triggers the assert? Ian

Re: [zeromq-dev] Market data Subscribe

2013-01-02 Thread Ian Barber
On Wed, Jan 2, 2013 at 5:59 PM, Nishant Mittal wrote: > > Question is do i have to do.. > > zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "A", 1); > > zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "B", 1); > > > That's the best way, without changing the published messages. The matching is very fast, so it's ju

Re: [zeromq-dev] Event zmq-signaler-port-sync leaking

2013-01-02 Thread Ian Barber
On Wed, Jan 2, 2013 at 12:14 PM, Felipe Farinon < felipe.fari...@powersyslab.com> wrote: > Any news on this issue? It got resolved in libzmq master: https://github.com/zeromq/libzmq/pull/489- Pieter mentioned he was backporting to 3.2, so try pulling from GH and see if it resolves your issue. I

Re: [zeromq-dev] zeromq Windows handle leak?

2012-12-25 Thread Ian Barber
Actually, I recall a thread previously around make_fdpair on windows - might be worth a quick search of the archives in case this has been subsequently addressed. On 25 Dec 2012 15:44, "KIU Shueng Chuan" wrote: > Eh? Doesn't the pirate pattern do a close and open? > > I was referring to a win32 H

Re: [zeromq-dev] Unable to use PGM (compiled yet "protocol not supported")

2012-12-14 Thread Ian Barber
On Fri, Dec 14, 2012 at 5:15 PM, Claudio Carbone wrote: > > > Pass the --with-pgm flag on the configure. Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/l

Re: [zeromq-dev] zmtplib - a tiny ZMTP library in C

2012-12-12 Thread Ian Barber
On Wed, Dec 12, 2012 at 2:43 PM, Pieter Hintjens wrote: > On Wed, Dec 12, 2012 at 3:38 PM, Steven McCoy > wrote: > > > Is that C89, C99, C11 or C++2003 compatible? > > I'll certainly have a look through. > > Good question. My default would have been to use C99/MSVC as we use in > CZMQ. > > But i

Re: [zeromq-dev] ZMQ_XPUB_VERBOSE does not report unsubscriptions

2012-12-09 Thread Ian Barber
On Sun, Dec 9, 2012 at 5:24 PM, Stefan Radomski < radom...@tk.informatik.tu-darmstadt.de> wrote: > Hi there, > > setting the ZMQ_XPUB_VERBOSE option on an XPUB socket will only report > multiple subscriptions - for unsubscription, only the last unsubscription > is reported. This makes the option u

Re: [zeromq-dev] Help needed choosing socket strategy

2012-12-07 Thread Ian Barber
On Tue, Dec 4, 2012 at 8:38 PM, Adrian Ribao wrote: > > > context = zmq.Context() > print "Starting the proxy..." > > # Listen for events > sub = context.socket(zmq.SUB) > sub.bind("tcp://*:") > sub.setsockopt(zmq.SUBSCRIBE, '') > > # Emit events > pub = context.socket(zmq.PUB) > pub.bind

Re: [zeromq-dev] locale communication with REQ-REP Pattern

2012-12-07 Thread Ian Barber
On Wed, Dec 5, 2012 at 1:21 PM, Martin Hua wrote: > > Ah, ok. If it is possible and ok, then I like to know some details about > REQ-REP, > how its all handled inside zmq. Each connection is assigned an identity by the REP part, and the current identity is stored when the application level recv

Re: [zeromq-dev] general strategy for sending data over epgm

2012-12-03 Thread Ian Barber
On Mon, Dec 3, 2012 at 8:50 PM, mlist user wrote: > Hi Andrew, > > On 4 December 2012 07:47, Andrew Hume wrote: > > i'm not sure what the issue is. > > if the rate is small and the messages are large, then yes, you need to > sleep > > large amounts. > > How would you figure out you need to sleep

Re: [zeromq-dev] Question about router-dealer sockets

2012-11-30 Thread Ian Barber
On Fri, Nov 30, 2012 at 4:38 PM, Marco Trapanese wrote: > Il 30/11/2012 00:36, Michel Pelletier ha scritto: > > > Yes. 0mq pushes messages as far to the receiver as possible as soon as > > possible. Linger only effects messages that have not yet been > > transmitted from the senders queue. If y

Re: [zeromq-dev] Latest zmq version supports UDP type sockets ?

2012-11-29 Thread Ian Barber
On Fri, Nov 30, 2012 at 6:51 AM, Santosh N Dumbre wrote: > Hi , > > coming across a query - > > Does the latest version (3.2 and above) of zeroMQ supports UDP sockets ? > > > No. Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://list

Re: [zeromq-dev] Using shared objects as clients

2012-11-28 Thread Ian Barber
On Wed, Nov 28, 2012 at 3:43 AM, Pieter Hintjens wrote: > > Also, each context will create at least one i/o thread. You can dodge around that for some if you are definitely only using them for inter-process by calling zmq_init(0) and using inproc (as that doesn't need an IO thread). Ian __

Re: [zeromq-dev] freelance(ish) pattern, java and threading

2012-11-27 Thread Ian Barber
On Tue, Nov 27, 2012 at 7:36 PM, Peter Friend wrote: > It almost sounds like I need another ROUTER socket bound to inproc which > the threads can connect to, then the main polling loop can pass from inproc > to the clients. That's the way! Your main thread in this case is acting as the proxy -

Re: [zeromq-dev] UDP performance

2012-11-27 Thread Ian Barber
On Tue, Nov 27, 2012 at 10:25 PM, Dan Goes wrote: > > - What sort of performance increases could we see with UDP transport over > TCP transport in zeromq, if it were a feature? The overall end-to-end > latency between a zmq_msg_send() in one application on one host and > zmq_msg_recv() in another

Re: [zeromq-dev] Is there already native "high level" connection pool?

2012-11-27 Thread Ian Barber
On Tue, Nov 27, 2012 at 1:33 PM, Stefan de Konink wrote: > On 11/27/12 13:49, Pieter Hintjens wrote: > > Please explain what you are actually trying to achieve, not in terms > > of 0MQ but in terms of the actual overall problem, and we'll be able > > to help more. > > I would like to send an inco

Re: [zeromq-dev] ZMQ transport priority.

2012-11-26 Thread Ian Barber
On Mon, Nov 26, 2012 at 6:30 PM, Vitaliy Ivanov wrote: > > void *socketSub = zmq_socket (context, ZMQ_SUB); > zmq_connect (socketSub, "inproc://my_publisher"); > zmq_connect (socketSub, "ipc:///tmp/my_publisher"); > zmq_connect (socketSub, "tcp://my_publisher:"); > All of them. As far as I r

Re: [zeromq-dev] RPM build error

2012-11-26 Thread Ian Barber
On Mon, Nov 26, 2012 at 3:29 PM, Justin Cook wrote: > I have fixed the spec file and created a build now. I attached the diff > and spec file to the Jira incident created and closed it. It would be great > to merge this change. > > For what it's worth, the original issue of that test failing has

Re: [zeromq-dev] RPM build error

2012-11-26 Thread Ian Barber
On Mon, Nov 26, 2012 at 1:05 PM, Justin Cook wrote: > > > This is a brand new CentOS install specifically for this :) > > I suppose the spec needs to be updated for the new build? > Yeah - it looks like the spec file is out of date. Would you mind filing a big for this in Jira? Thanks!

Re: [zeromq-dev] RPM build error

2012-11-26 Thread Ian Barber
On Mon, Nov 26, 2012 at 12:59 PM, Justin Cook wrote: > What's the safe work around? > > -- > Justin Cook > As a first instance, just retry. If it's happening every time it may be worth investigating further. Ian ___ zeromq-dev mailing list zeromq-dev

Re: [zeromq-dev] RPM build error

2012-11-26 Thread Ian Barber
On Mon, Nov 26, 2012 at 12:55 PM, Justin Cook wrote: > It appears that this is already known: > > > https://zeromq.jira.com/browse/LIBZMQ-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > -- Yeah, that test is a little flaky, it could do with a little refactoring to be a

Re: [zeromq-dev] Designing for a subscriber that only bothers when data is presented

2012-11-22 Thread Ian Barber
On Thu, Nov 22, 2012 at 11:43 AM, Stefan de Konink wrote: > > In this case it is only one topic. What I would like to do is updating a > specific 'file' at a webserver, but doing it directly in memory without > using any aditional threading. Since the request at the webserver are > received at an

Re: [zeromq-dev] Designing for a subscriber that only bothers when data is presented

2012-11-22 Thread Ian Barber
On Thu, Nov 22, 2012 at 11:36 AM, Stefan de Konink wrote: > Imagine a usecase having a persistent datastream form a pubsub but the > subscriber can't be bothered to receive messages in quiet times, just > because the data is not needed and is updated at such regular intervals > that processing me

Re: [zeromq-dev] ZeroMQ 3.2.2rc2, epgm and .NET ?

2012-11-18 Thread Ian Barber
On Sat, Nov 17, 2012 at 10:53 PM, Marten Feldtmann wrote: > > > I read those eMails, but it is still not clear for me, what is possible > and what is NOT possible using the epgm protocol (practically). > > Are there some DO or DO NOT regarding this issue ? Practically, it's fine to do that, it ju

Re: [zeromq-dev] ZeroMQ 3.2.2rc2, epgm and .NET ?

2012-11-17 Thread Ian Barber
On Sat, Nov 17, 2012 at 9:41 PM, Marten Feldtmann wrote: > Yes, software runs on ONE machine ... and how can I enable it ? > > Marten > I don't believe you can - there were some issues. Can you develop with TCP locally, and verify EPGM in a multihost environment? Ian

Re: [zeromq-dev] ZeroMQ 3.2.2rc2, epgm and .NET ?

2012-11-17 Thread Ian Barber
On Sat, Nov 17, 2012 at 9:35 PM, Marten Feldtmann wrote: > > I have a simple publish/subscribe example as my test case and when > working with tcp addresses, the example works as expected - both the > subscriber and the publisher under .NET within the same executable > produces the output and show

Re: [zeromq-dev] Getting connection info from pipe_t?

2012-11-17 Thread Ian Barber
On Sat, Nov 17, 2012 at 7:11 PM, Merijn Verstraaten wrote: > On Nov 17, 2012, at 19:54 , Ian Barber wrote: > > On Sat, Nov 17, 2012 at 6:44 PM, Merijn Verstraaten < > mer...@inconsistent.nl> wrote: > >> >> On a side note, I agree that not having providing this in

Re: [zeromq-dev] Getting connection info from pipe_t?

2012-11-17 Thread Ian Barber
On Sat, Nov 17, 2012 at 6:44 PM, Merijn Verstraaten wrote: > > On a side note, I agree that not having providing this information to > external users of the library, but I'm unsure why that information > shouldn't be made available inside ZMQ? It makes disconnecting/filtering > connections signifi

Re: [zeromq-dev] Getting connection info from pipe_t?

2012-11-17 Thread Ian Barber
On Sat, Nov 17, 2012 at 5:59 PM, Merijn Verstraaten wrote: > I'm playing around with the ZMQ source and had a question. The socket > implementations all read incoming messages from the pipe_t connected to it, > but as far as I can see there is no way to identify the endpoint (IP+port > or similar)

Re: [zeromq-dev] Resource Temporarily Unavailable

2012-11-16 Thread Ian Barber
On 16 Nov 2012 01:07, "Jeyamahesan Chandrakanthan" wrote: > > im not receiving the data..instead of I'm receiving this below error... > > it throws exception: zmq_recv: Resource temporarily unavailable > > Try passing 0 for the flags. Ian ___ zeromq-d

Re: [zeromq-dev] Compatibility 3.1 - 3.2.1-rc2

2012-11-15 Thread Ian Barber
On Thu, Nov 15, 2012 at 9:50 AM, Emmanuel TAUREL wrote: > > From previous Pieter answer, I understood that the 4 cases should work > (I hope so). > Do I have to create a Jira bug entry for the coming 3.2.1 (stable)? > Definitely raise this, there's nothing that changed that should make them inc

Re: [zeromq-dev] binding to a wildcard tcp port

2012-10-26 Thread Ian Barber
On Fri, Oct 26, 2012 at 7:38 AM, Pieter Hintjens wrote: > On Fri, Oct 26, 2012 at 8:22 PM, Stephen Lord > wrote: > > > What I had to work out for myself by reading source code was that > > this works: > > ret = zmq_bind(sock, "tcp://*:*"); > > This isn't documented in the zmq_bind man page.

Re: [zeromq-dev] Guide, fragments & translations

2012-10-22 Thread Ian Barber
On Sun, Oct 21, 2012 at 11:36 PM, Pieter Hintjens wrote: > Hi Daisuke, > > Sorry, I meant to add the repo link but got distracted by some online > discussions... apparently there's something called AMQP that people > are blogging about again. > > The repo is here: https://github.com/imatix/zguide

Re: [zeromq-dev] Authenticated pub/sub - does this approach make sense?

2012-10-21 Thread Ian Barber
On Sat, Oct 20, 2012 at 2:16 PM, Merijn Verstraaten wrote: > > > This works, but is inconvenient when group membership is transient > (requires rekey-ing all subscribers after one client leaves the group). So > after some thinking I started considering handling subscription server side > too. > I

Re: [zeromq-dev] ZMQ and the internet - desired/necessary features

2012-10-21 Thread Ian Barber
a On Sun, Oct 21, 2012 at 7:57 AM, Merijn Verstraaten wrote: > Hello again! > > Yesterday I sent an email about doing authenticated PUBSUB by having a > server side thread per client, however, after some thinking I realised > there are more issues with using ZMQ on the internet and some more in-d

Re: [zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

2012-10-19 Thread Ian Barber
On Thu, Oct 18, 2012 at 10:58 PM, Pieter Hintjens wrote: > > So I'm going to create a new issue and revert the error code to > EHOSTUNREACH. > > -Pieter > Yep, fair points, sounds good to me. Ian ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.or

Re: [zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

2012-10-18 Thread Ian Barber
On Thu, Oct 18, 2012 at 8:59 PM, Pieter Hintjens wrote: > > Changed on June 17th... it seems to me the original name and semantics > were good, and the June 17 change broke them without real > argumentation. Perhaps we can enforce the C4 "Development Process" > rules a little harder. Every pull re

Re: [zeromq-dev] inproc: need to bind to an address before connect?

2012-10-18 Thread Ian Barber
On Thu, Oct 18, 2012 at 3:45 PM, Chuck Remes wrote: > No, it is not guaranteed that socket3 will be ready for a connection. All > binds (and connects) happen asynchronously in the I/O thread. Depending on > your machine performance, it could be ready in 10ms, 100ms or more. > > Actually, in the i

Re: [zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

2012-10-18 Thread Ian Barber
On Thu, Oct 18, 2012 at 8:02 PM, Pieter Hintjens wrote: > > I like that... EAGAIN is really the wrong value to use, EHOSTUNREACH > is much nicer. At the API level too. It's not an EAGAIN error at all, > it's "the address you used does not exist"... > > -Pieter > Thinking about it, I believe the

Re: [zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

2012-10-18 Thread Ian Barber
On Thu, Oct 18, 2012 at 5:53 AM, Pieter Hintjens wrote:. > > > The wait is in socket_base.cpp:send, where it says: > > // Oops, we couldn't send the message. Wait for the next > // command, process it and try to send the message again. > // If timeout is reached in the meantime, ret

Re: [zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

2012-10-17 Thread Ian Barber
On Thu, Oct 18, 2012 at 3:51 AM, Pieter Hintjens wrote: > Hi, > > I'm trying this option and notice that when the message cannot be > routed, zmq_sendmsg blocks forever. To get sane behavior I have to set > ZMQ_SNDTIMEO to a low value, e.g. 100 msecs. > > Has anyone else experienced this, and doe

Re: [zeromq-dev] IPC and free ports

2012-10-11 Thread Ian Barber
On Thu, Oct 11, 2012 at 5:14 PM, andrea crotti wrote: > So suppose I want to make sure that I'm not binding twice, what should I > do? Check if the file already exists or? Yep > try: > sock.bind(addr) > except zmq.Error: > # loop over until find a free channel > That works, you can al

Re: [zeromq-dev] http://php.zero.mq not responding

2012-10-11 Thread Ian Barber
On Wed, Oct 10, 2012 at 3:03 PM, Tuomas Koski wrote: > However the http://php.zero.mq has not been responding for some time > (at least in two weeks I think). > > Is this a known problem? Is there a alternative online documentation? Sorry about that, it is a known problem - the machine died and i

Re: [zeromq-dev] ZeroMQ Client Lose Connection

2012-10-08 Thread Ian Barber
On Mon, Oct 8, 2012 at 8:49 PM, Thomas S Hatch wrote: > Nope, we get no errors, things just stop talking. The tricky thing too is > that it varies widely on the infrastructure using Salt. You may notice that > on the pub side we have the pub_refresh stuff that refreshed the publisher, > this works

  1   2   3   4   5   >