[zeromq-dev] Server freezes when there's no response
I noticed every time I load a page that's making a request to an address, the server seems to freeze whenever there is no response/data from the address. Is this a bug or am I doing something wrong here? here's my code: ZMQ.Context context = new ZMQ.Context(1); ZMQ.Socket socket = context.Socket(ZMQ.SocketType.DEALER); socket.Connect("address_goes_here"); socket.Recv(); Regards, Olanrewaju Lawal Web Developer / Programmer +2348053568948 ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] GoogleTest and GoogleMock for ØMQ
On 30 October 2011 18:54, Martin Lucina wrote: > Steven, > > steven.mc...@miru.hk said: > > Another large integration project. Before I continue running through > new tests > > it is probably a good idea for the code layout and infrastructure to be > updated > > to all work cleanly. > > Random question/suggestion: This seems like a whole lot of integration work > and extra infrastructure just to get some test cases. > > Why not just use the autoconf built-in "make test" functionality (lets > ignore the fact that it's non-Windows for now) and expand and improve the > existing tests in tests/? > > Other than the lack of OO-ness is there anything you actually *cannot* do > with those tests that you would want to do with GoogleTest/GoogleMock? > > It might prove just an example of why not to use it. It looks interesting for the socket modules but pretty useless for much of the rest of the code. -- Steve-o ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Linking Exception
On Tue, Nov 1, 2011 at 12:18 PM, Martin Sustrik wrote: > AFAIU the linking exception as defined in COPYING.LESSER is not longer > valid because people submit patches under LGPL for the last year or so. > Thus, iMatix can't grant any special exceptions. This is not quite how it works. Note that the LGPL is itself constructed as an exception to the GPL. When you submit a modification of a work that is licensed under the LGPL+exception that modification is licensed the same way. > The question remains what is the exception good for anyway. It doesn't > seem to grant any special rights that LGPL doesn't grant in the first place. The default LGPL requires that you either (a) use only a dynamic library or (b) release your entire app as (L)GPL. The static linking exception does what it says, it lets you link libzmq into static executables. This was originally required for iOS but also used by people on other systems. Removing this would be damaging to use of 0MQ, and would break the existing contract we have between contributors. Further you cannot remove it for any derived work, only 100% new works. -Pieter ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] typo on the website
I'll fix it... we have still to automate the process that builds this site. On Nov 1, 2011 8:02 AM, "Martin Sustrik" wrote: > Reference on zero.mq states "ØMQ/2.1.9 API Reference" whereas the recent > 2.1 version is 2.1.10. > > This seems to be a generated page so I don't want to modify it by hand. > > Martin > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
Done. https://zeromq.jira.com/browse/LIBZMQ-276 Benoit. > On Nov 1, 2011, at 9:32 AM, Benoit Laplante wrote: > >> I would but I don't think a reporter can create issues. > >Anyone who has registered can create issues. This is the only way for us to track problems (and fixes), so please take the time >to do it. Thank you. > >cr ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Linking Exception
On 11/01/2011 06:18 PM, Martin Sustrik wrote: > The question remains what is the exception good for anyway. It doesn't > seem to grant any special rights that LGPL doesn't grant in the first place. The wording seems to be from GNU Classpath exception, which is meant to be combined with GPL projects. Combining it with LGPL project doesn't grant any additional rights AFAICS. IANAL though. Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Linking Exception
Hi all, AFAIU the linking exception as defined in COPYING.LESSER is not longer valid because people submit patches under LGPL for the last year or so. Thus, iMatix can't grant any special exceptions. The question remains what is the exception good for anyway. It doesn't seem to grant any special rights that LGPL doesn't grant in the first place. Should we remove it or what? Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Configuration cannot find libzmq.so.1?
On Tue, Nov 1, 2011 at 09:57, Dave Johnson wrote: > It's a library that depends on pyzmq. I didn't say so because I didn't > realize it was important. > Can you tell us what the library is? Is pyzmq installation being triggered by setuptools dependencies (e.g. via easy_install)? You might try installing pyzmq itself first, to see if it works. > > Yep, I ran sudo ldconfig after installation. > > I just tried again, with some modifications, and am getting the same > error. I can confirm that the following files exist: > /usr/local/lib/libzmq.so > /usr/local/lib/libzmq.so.1 > /usr/local/lib/libzmq.so.1.0.0 > (what's the difference between the three files, by the way?) > .1.0.0 is the real file, the others are just symlinks to it. > > I guess I will try again later and see what happens. Wish me luck! > > -- > *From:* MinRK > *To:* ZeroMQ development list > *Cc:* Dave Johnson > *Sent:* Tuesday, November 1, 2011 9:29 AM > *Subject:* Re: [zeromq-dev] Configuration cannot find libzmq.so.1? > > Pretty sure this is pyzmq (it would help to say so, because I don't check > all of zeromq-dev thoroughly, but I do get notified of pyzmq mentions). > > Did you: > a) run `sudo ldconfig` after installing as the message says? This is only > sometime necessary, but if it couldn't find libzmq in /usr/local that's > often why. > or > b) run `python setup.py configure --zmq=/usr/local` to tell pyzmq where > libzmq is *installed*? > > What platform are you on? > > -MinRK > > On Tue, Nov 1, 2011 at 03:41, Steven McCoy wrote: > > > On 1 November 2011 01:16, Dave Johnson wrote: > > Hey all, > > I'm stuck on an error when running a config script for a library that > depends on zmq. Specifically, it cannot find "libzmq.so.1". > > I installed zmq with the following commands: > > cd zeromq-2.1.10 > ./configure --prefix=/usr/local && make > sudo make install > > And I then added the following to my environment variable, .bash_profile, > and yes, I definitely sourced the bash profile again: > > LD_LIBRARY_PATH=/home/ec2-user/zeromq-2.1.10 > > > This doesn't match the *configure* *prefix* above though? > > -- > Steve-o > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > > > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Configuration cannot find libzmq.so.1?
It's a library that depends on pyzmq. I didn't say so because I didn't realize it was important. Yep, I ran sudo ldconfig after installation. I just tried again, with some modifications, and am getting the same error. I can confirm that the following files exist: /usr/local/lib/libzmq.so /usr/local/lib/libzmq.so.1 /usr/local/lib/libzmq.so.1.0.0 (what's the difference between the three files, by the way?) I guess I will try again later and see what happens. Wish me luck! From: MinRK To: ZeroMQ development list Cc: Dave Johnson Sent: Tuesday, November 1, 2011 9:29 AM Subject: Re: [zeromq-dev] Configuration cannot find libzmq.so.1? Pretty sure this is pyzmq (it would help to say so, because I don't check all of zeromq-dev thoroughly, but I do get notified of pyzmq mentions). Did you: a) run `sudo ldconfig` after installing as the message says? This is only sometime necessary, but if it couldn't find libzmq in /usr/local that's often why. or b) run `python setup.py configure --zmq=/usr/local` to tell pyzmq where libzmq is *installed*? What platform are you on? -MinRK On Tue, Nov 1, 2011 at 03:41, Steven McCoy wrote: >On 1 November 2011 01:16, Dave Johnson wrote: > >Hey all, >> >> >>I'm stuck on an error when running a config script for a library that depends >>on zmq. Specifically, it cannot find "libzmq.so.1". >> >> >>I installed zmq with the following commands: >> >> >>cd zeromq-2.1.10 >>./configure --prefix=/usr/local && make >>sudo make install >> >> >>And I then added the following to my environment variable, .bash_profile, and >>yes, I definitely sourced the bash profile again: >> >> >>LD_LIBRARY_PATH=/home/ec2-user/zeromq-2.1.10 >> >> >> > > >This doesn't match the configure prefix above though? > >-- >Steve-o >___ >zeromq-dev mailing list >zeromq-dev@lists.zeromq.org >http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Configuration cannot find libzmq.so.1?
Pretty sure this is pyzmq (it would help to say so, because I don't check all of zeromq-dev thoroughly, but I do get notified of pyzmq mentions). Did you: a) run `sudo ldconfig` after installing as the message says? This is only sometime necessary, but if it couldn't find libzmq in /usr/local that's often why. or b) run `python setup.py configure --zmq=/usr/local` to tell pyzmq where libzmq is *installed*? What platform are you on? -MinRK On Tue, Nov 1, 2011 at 03:41, Steven McCoy wrote: > > On 1 November 2011 01:16, Dave Johnson wrote: > >> Hey all, >> >> I'm stuck on an error when running a config script for a library that >> depends on zmq. Specifically, it cannot find "libzmq.so.1". >> >> I installed zmq with the following commands: >> >> cd zeromq-2.1.10 >> ./configure --prefix=/usr/local && make >> sudo make install >> >> And I then added the following to my environment variable, .bash_profile, >> and yes, I definitely sourced the bash profile again: >> >> LD_LIBRARY_PATH=/home/ec2-user/zeromq-2.1.10 >> >> > This doesn't match the *configure* *prefix* above though? > > -- > Steve-o > > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
On Nov 1, 2011, at 9:32 AM, Benoit Laplante wrote: > I would but I don't think a reporter can create issues. Anyone who has registered can create issues. This is the only way for us to track problems (and fixes), so please take the time to do it. Thank you. cr ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
I would but I don't think a reporter can create issues. Benoit >> I detected a small memory leak (76 bytes) when a socket identity is greater >> than 29 chars on a DEALER socket. I was unable to reproduce this leak on a >> small test case. >Benoit, >Could you please log an issue in the Jira issue tracker? Thanks. >-Pieter ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
Yes, no leak, no crash. Thank you Martin On Tue, Nov 1, 2011 at 4:05 AM, Martin Sustrik wrote: > On 10/31/2011 09:30 PM, Benoit Laplante wrote: > > Yes it helps with my tests using DEALER <=> ROUTER pattern (broker) but >> it crashes, on destruction, of my tests using the PUSH <=> PULL pattern >> (fan) with this assert >> /Bad address/ >> /rc == 0 (..\..\..\src\decoder.cpp:44)/ >> > > Ok, try adding following two lines at zmq_init.cpp:114: > > msg_->close(); > msg_->init (); > > Martin > ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Transport Choice
On Nov 1, 2011, at 5:24 AM, Martin Sustrik wrote: > On 11/01/2011 11:05 AM, asif saeed wrote: > >> I am a newbie to 0MQ and want to use it in my project. The page at >> http://nichol.as/zeromq-an-introduction seems to suggest that you can >> use only *one* transport per application. I believe that's not the case >> and that I can use multiple transport types in a single app. Right? > > Right. To expand a little on Martin's response, binding/connecting to multiple endpoints is one of the strengths of 0mq. For example, let's assume you have built a service locator using 0mq for messaging. You may have "clients" within the same process, on the same box and on the same LAN that all need to use the locator. The locator *could* utilize multiple transports to most efficiently process requests. socket.bind("inproc://service_locator"); socket.bind("ipc:///ipcsockets/service_locator"); socket.bind("tcp://192.168.0.100:12000"); # LAN requests socket.connect("tcp://192.168.0.105:5000"); # connect to device for WAN requests Note that you can bind *and* connect the very same socket. cr ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] typo on the website
Reference on zero.mq states "ØMQ/2.1.9 API Reference" whereas the recent 2.1 version is 2.1.10. This seems to be a generated page so I don't want to modify it by hand. Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Configuration cannot find libzmq.so.1?
On 1 November 2011 01:16, Dave Johnson wrote: > Hey all, > > I'm stuck on an error when running a config script for a library that > depends on zmq. Specifically, it cannot find "libzmq.so.1". > > I installed zmq with the following commands: > > cd zeromq-2.1.10 > ./configure --prefix=/usr/local && make > sudo make install > > And I then added the following to my environment variable, .bash_profile, > and yes, I definitely sourced the bash profile again: > > LD_LIBRARY_PATH=/home/ec2-user/zeromq-2.1.10 > > This doesn't match the *configure* *prefix* above though? -- Steve-o ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Transport Choice
On 11/01/2011 11:05 AM, asif saeed wrote: > I am a newbie to 0MQ and want to use it in my project. The page at > http://nichol.as/zeromq-an-introduction seems to suggest that you can > use only *one* transport per application. I believe that's not the case > and that I can use multiple transport types in a single app. Right? Right. Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Transport Choice
Hi, I am a newbie to 0MQ and want to use it in my project. The page at http://nichol.as/zeromq-an-introduction seems to suggest that you can use only *one* transport per application. I believe that's not the case and that I can use multiple transport types in a single app. Right? Best regards, Asif ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Load Balancing Messages - please elaborate
On 11/01/2011 10:57 AM, asif saeed wrote: > "A single ZeroMQ socket can for example connect to multiple end points > and automatically load balance messages over them." > > Would you please elaborate as to what it means by "automatically load > balance messages over them"? It's basically round-robin. Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Load Balancing Messages - please elaborate
Hi, The page at http://nichol.as/zeromq-an-introduction says the following: "A single ZeroMQ socket can for example connect to multiple end points and automatically load balance messages over them." Would you please elaborate as to what it means by "automatically load balance messages over them"? Best regards, Asif ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Memory Leak using 0MQ 3.0.2
On 10/31/2011 09:30 PM, Benoit Laplante wrote: > Yes it helps with my tests using DEALER <=> ROUTER pattern (broker) but > it crashes, on destruction, of my tests using the PUSH <=> PULL pattern > (fan) with this assert > /Bad address/ > /rc == 0 (..\..\..\src\decoder.cpp:44)/ Ok, try adding following two lines at zmq_init.cpp:114: msg_->close(); msg_->init (); Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] make check failure
On 11/01/2011 03:40 AM, Joshua Wetzel wrote: > Too many open files > sock != -1 (tcp_listener.cpp:335) > /bin/sh: line 1: 18892 Abort trap ${dir}$tst > FAIL: test_shutdown_stress The test in question opens a lot sockets. OSX has a rather low limit for number of open sockets. Try increasing the limit. Martin ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] make check failure
Hi, I'm trying to build 0mq on max os x 10.6 and I am getting the following output when using make check: chromium:zeromq-2.1.10 jlwetzel$ make check Making check in src make[1]: Nothing to be done for `check'. Making check in doc make[1]: Nothing to be done for `check'. Making check in perf make[1]: Nothing to be done for `check'. Making check in tests make check-TESTS PASS: test_pair_inproc PASS: test_pair_tcp PASS: test_reqrep_inproc PASS: test_reqrep_tcp PASS: test_hwm Too many open files sock != -1 (tcp_listener.cpp:335) /bin/sh: line 1: 18892 Abort trap ${dir}$tst FAIL: test_shutdown_stress PASS: test_pair_ipc PASS: test_reqrep_ipc 1 of 8 tests failed Please report to zeromq-dev@lists.zeromq.org make[2]: *** [check-TESTS] Error 1 make[1]: *** [check-am] Error 2 make: *** [check-recursive] Error 1 Please let me know if you have any suggestions. Thanks, Josh ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Configuration cannot find libzmq.so.1?
On Tue, Nov 1, 2011 at 5:16 AM, Dave Johnson wrote: > Hey all, > I'm stuck on an error when running a config script for a library that > depends on zmq. Specifically, it cannot find "libzmq.so.1". > I installed zmq with the following commands: > cd zeromq-2.1.10 > ./configure --prefix=/usr/local && make > sudo make install > And I then added the following to my environment variable, .bash_profile, > and yes, I definitely sourced the bash profile again: > LD_LIBRARY_PATH=/home/ec2-user/zeromq-2.1.10 > > This didn't help. Anyone know what to do here? I've been stuck for days > scouring Google, trying stuff, not sure what to do... > ERROR LOG: > > Error running version detection script: > detect/vers: error while loading shared libraries: libzmq.so.1: cannot open > shared object file: No such file or directory > Fatal: > Failed to run ZMQ test program. Please check to make sure: > > > * You have a C compiler installed > * A development version of Python is installed (including header files) > * A development version of ZMQ >= 2.1.4 is installed (including header > files) > * If ZMQ is not in a default location, supply the argument --zmq= > * If you did recently install ZMQ to a default location, > try rebuilding the ld cache with `sudo ldconfig` > or specify zmq's location with `--zmq=/usr/local` Hi, really no idea which library this is but did you try passing the option '--zmq=' as the instructions tell? -- Mikko Koppanen ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev