Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-20 Thread James Harvey
it was *serial monogamy* I will let it go now :) -Original Message- From: zeromq-dev On Behalf Of Luca Boccassi Sent: 20 June 2018 16:33 To: ZeroMQ development list Subject: Re: [zeromq-dev] ZMQ_PAIR over TCP As I mentioned, only one pipe is accepted at any given time. Just because

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-20 Thread Luca Boccassi
inproc and TCP > but those patterns are not excluded from reconnect just because they > can be used over inproc. > > > > From: zeromq-dev On Behalf Of > vincent freedom > Sent: 20 June 2018 04:48 > To: zeromq-dev@lists.zeromq.org > Subject: Re: [zeromq-dev] ZMQ_PAIR

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-20 Thread James Harvey
dev On Behalf Of vincent freedom Sent: 20 June 2018 04:48 To: zeromq-dev@lists.zeromq.org Subject: Re: [zeromq-dev] ZMQ_PAIR over TCP Nope, it doesn't reconnect. It looks like it does work over tcp though. https://pastebin.com/e42ysUAy https://pastebin.com/jbi1KA3n Run the client for the second t

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-19 Thread vincent freedom
Nope, it doesn't reconnect. It looks like it does work over tcp though. https://pastebin.com/e42ysUAy https://pastebin.com/jbi1KA3n Run the client for the second time and it won't receive any messages. -vf ___ zeromq-dev mailing list

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Esa HekmatiZadeh
I have checked the git repository of the zguide, this line belongs to 6 years ago: https://github.com/booksbyus/zguide/blame/b9ac51e2ef48712d3416628db626a97ff4006846/chapter2.txt#L948 If you are sure (make sure to test other binding and implementation like JeroMQ) change the documentation, so

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Luca Boccassi
It depends. A pair socket will only ever have one peer at a time, as the doc says. So if the binding end gets a new peer trying to join before the other one was removed, it will ignore it. https://github.com/zeromq/libzmq/blob/master/src/pair.cpp#L56 On Mon, 2018-06-18 at 13:10 +0200, Attila

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Attila Magyari
@Esa, are these documents recent? I am currently using ZMQ_PAIR sockets and they do reconnect quite well. On Mon, Jun 18, 2018 at 1:05 PM Esa HekmatiZadeh wrote: > Hi James > According to zguide: > >> When you want to coordinate a set of nodes on a network, PAIR sockets >> won't work well any

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Esa HekmatiZadeh
Hi James According to zguide: > When you want to coordinate a set of nodes on a network, PAIR sockets > won't work well any more. This is one of the few areas where the strategies > for threads and nodes are different. Principally, nodes come and go whereas > threads are usually static. PAIR

Re: [zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread Attila Magyari
As I understood, the documents are outdated, and ZMQ_PAIR is supposed to work not only for inproc protocols. I am definitely not sure about this, and I as well use it for TCP, so would be interested in the answers. On Mon, Jun 18, 2018 at 12:40 PM James Harvey wrote: > Hi, > > > > I have been

[zeromq-dev] ZMQ_PAIR over TCP

2018-06-18 Thread James Harvey
Hi, I have been using ZMQ_PAIR recently for a one to one data feed over TCP. I know the documentation doesn't explicitly say this should work (over TCP) but for the most part it does. Last week I came across a situation where the bind end of the connection had reconnection issues if no data