Re: [zeromq-dev] 0MQ-based proxy worker crashes with Assertion failed: pipe (bundled/zeromq/src/session_base.cpp:441)

2014-09-12 Thread Tomas Krajca
Does anybody have any idea about the original proxy crash? The proxy did about 8 requests just fine today and then it crashed with the pipe assertion again, really weird. Thanks, Tomas On 10 Sep 2014, at 10:51 am, Tomas Krajca t.l.kra...@gmail.com wrote: Thanks Justin, zurl is

Re: [zeromq-dev] 0MQ-based proxy worker crashes with Assertion failed: pipe (bundled/zeromq/src/session_base.cpp:441)

2014-09-12 Thread Pieter Hintjens
Is there any way you can cut down your code to a minimal case that you can get to crash? That is usually the best way to get the problem resolved. On Fri, Sep 12, 2014 at 8:26 AM, Tomas Krajca t.l.kra...@gmail.com wrote: Does anybody have any idea about the original proxy crash? The proxy did

[zeromq-dev] Router socket and connection identities?

2014-09-12 Thread Riskybiz
Dear zeromq developers, I intend to create an example DEALER-ROUTER network arrangement which will pass multipart messages containing a variable number of parts. As I understand it a ROUTER socket uses an identity for each of the connections with which it corresponds; the

[zeromq-dev] distributed message bus on top of / built with zeromq?

2014-09-12 Thread Holger Joukl
Dear all, this is my first post to this list so please bear with my rather lengthy thoughts. I'm working in a financial markets environment and am currently looking into alternatives for near-realtime trade data message delivery (contracts or deals, not market data ticks). Traditionally we are

Re: [zeromq-dev] distributed message bus on top of / built with zeromq?

2014-09-12 Thread Pieter Hintjens
Hi Holger, I'll answer this very briefly. Yes, you can build what you need on top of ZeroMQ and hit your goals of cost, openness, and performance. Development effort will be reasonable. Yes, we will provide support, during and after this process. Please contact me directly if you want to set that

Re: [zeromq-dev] distributed message bus on top of / built with zeromq?

2014-09-12 Thread Holger Joukl
Hi Pieter, Von: Pieter Hintjens p...@imatix.com I'll answer this very briefly. Yes, you can build what you need on top of ZeroMQ and hit your goals of cost, openness, and performance. Development effort will be reasonable. Yes, we will provide support, during and after this process. Please

Re: [zeromq-dev] 0MQ-based proxy worker crashes with Assertion failed: pipe (bundled/zeromq/src/session_base.cpp:441)

2014-09-12 Thread Tomas Krajca
Thanks Peter, I don't have a minimal case yet, I am trying to narrow it down but I struggle a bit since I am not a C++ programmer and I don't know much about 0MQ internals. The main problem is that I don't get any python stacktrace or anything like that, the proxy worker crashes with the 0MQ

Re: [zeromq-dev] Proposal for a revised zlist API

2014-09-12 Thread Goswin von Brederlow
On Wed, Sep 10, 2014 at 06:42:18PM +0200, Pieter Hintjens wrote: Sorry, I've lost track of some of the details here. Could you re-describe your timeout queue starting from the problem so I can think about how I'd implement it? Thanks Pieter The problem is that every connected host has a

Re: [zeromq-dev] Router socket and connection identities?

2014-09-12 Thread Goswin von Brederlow
On Fri, Sep 12, 2014 at 09:00:02AM +0100, Riskybiz wrote: Dear zeromq developers, I intend to create an example DEALER-ROUTER network arrangement which will pass multipart messages containing a variable number of parts. As I understand it a ROUTER socket uses an

[zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread Tom Quarendon
Since Visual Studio doesn't support C99, the C source files are compiled as C++. This appears to have thrown up a type issue. In zsock_option.c, line 78 for example: printf (ZMQ_ROUTER_HANDOVER is not valid on %s sockets\n, zsock_type_str (self)); The compiler is complaining at passing a void*

Re: [zeromq-dev] 0MQ-based proxy worker crashes with Assertion failed: pipe (bundled/zeromq/src/session_base.cpp:441)

2014-09-12 Thread Martin Hurton
Hi Tomas, can you please check with the master and report back? Thanks. On Sep 9, 2014 3:44 AM, Tomas Krajca t.l.kra...@gmail.com wrote: Hi, I've got a 0MQ-based proxy, clients talk 0MQ to the proxy, the proxy then talks HTTP to do either a GET on a specific url endpoint or a POST on a

Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread Steven McCoy
On 12 September 2014 11:12, Tom Quarendon tom.quaren...@teamwpc.co.uk wrote: Since Visual Studio doesn’t support C99, the C source files are compiled as C++. This appears to have thrown up a type issue. MSVC 2013 supports most of C99, its not so important any more. -- Steve-o

Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread Tom Quarendon
Ø MSVC 2013 supports most of C99, its not so important any more. As provided, the Visual Studio 2013 projects have the same error. If you change the project to say “compile as C” rather than “compile as C++”, the error goes away. Perhaps the Visual Studio projects need altering. However. My

Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread Tom Quarendon
Ø MSVC 2013 supports most of C99, its not so important any more. Apart from the fact that project files are provided for compilation with MSVC 2012 and indeed 2008 and 2010. So either they should work, or not be provided. My opinion anyway. ___

Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread AJ Lewis
On Fri, Sep 12, 2014 at 04:33:11PM +, Tom Quarendon wrote: Ø MSVC 2013 supports most of C99, its not so important any more. Apart from the fact that project files are provided for compilation with MSVC 2012 and indeed 2008 and 2010. So either they should work, or not be provided. My

[zeromq-dev] Multiple Router/Dealer

2014-09-12 Thread Mohit Anchlia
For my testing I've built a client (req) - router - dealer - worker (rep). I currently have multiple clients and workers, however I am trying to figure out how I can have multiple router/dealers. Is there a way to make router/dealers multi-threaded? ___

[zeromq-dev] Interrupt and cleanly exit java application

2014-09-12 Thread Mohit Anchlia
I am using the following code to connect to a socket, however when I exit the application not all the threads exit. Lot of the threads are waiting, Is there a better way to cleanly exit the application? Thread-6 prio=10 tid=0x7f0f043d8800 nid=0xff9 runnable [0x7f0ef04ab000]

Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

2014-09-12 Thread Pieter Hintjens
This is a problem in the code, it should cast a void * if the receiving function expects something else. Even if the compilation works without error, the code will crash in some cases. I've made a patch... https://github.com/zeromq/czmq/pull/651 On Fri, Sep 12, 2014 at 6:34 PM, AJ Lewis

Re: [zeromq-dev] 0MQ-based proxy worker crashes with Assertion failed: pipe (bundled/zeromq/src/session_base.cpp:441)

2014-09-12 Thread Tomas Krajca
Thanks, that's a good idea, I'll give that a go on Monday. Tomas On 13 Sep 2014, at 1:59 am, Martin Hurton hurt...@gmail.com wrote: Hi Tomas, can you please check with the master and report back? Thanks. On Sep 9, 2014 3:44 AM, Tomas Krajca t.l.kra...@gmail.com wrote: Hi, I've got a