[zeromq-dev] Issues with Java binding

2010-09-08 Thread Alberto Antenangeli
Hi, I'm trying to get the Java binding for 0mq to work, and I'm running into issues. First of all, the WIKI is not clear about where to extract the Jiava source - I tried a separate directory, with no luck. Then I extracted it on on top of my 0mq installation, and that seems to work a bit bett

[zeromq-dev] invalid ELF headers

2010-09-08 Thread Brazil web
Hello, I installed zeromq on ubuntu 10,04 and the compilation went through without any errors. However when i try to run the python test, it results in this error: jer...@vm1:~/zeromq/pyzmq-2.0.7$ python setup.py test running test Traceback (most recent call last): File "setup.py", line 144, i

[zeromq-dev] Ctrl+C problem fixed in master

2010-09-08 Thread Martin Sustrik
Hi all, The problem with interpreted languages bindings being unresponsive to Ctrl+C was fixed in the master branch (0MQ/2.1 to be). Thanks to Brian Granger, Daisuke Make, Chuck Remes adn Mato Lucina for helping to solve the problem! Martin ___ zeromq

Re: [zeromq-dev] Issues with Java binding

2010-09-08 Thread Pieter Hintjens
On Wed, Sep 8, 2010 at 1:50 AM, Alberto Antenangeli wrote: > configure: error: cannot link with -lzmq > I have libzmq correctly built - Try "sudo ldconfig", which seems to be needed when you install a new shared library. - Pieter Hintjens iMatix - www.imatix.com

Re: [zeromq-dev] invalid ELF headers

2010-09-08 Thread Pieter Hintjens
How did you get pyzmq? Did you build it on that box? I'd suggest, if you did not already do this, building pyzmq as described here: http://www.zeromq.org/bindings:python -Pieter On Wed, Sep 8, 2010 at 3:47 AM, Brazil web wrote: > Hello, > > I installed zeromq on ubuntu 10,04 and the compilatio

[zeromq-dev] Java "Getting the Message Out" and "Divide and Conquer" examples

2010-09-08 Thread Nicola Peduzzi
While learning this orgasmic library I think I can couple that with contributing. Bye! Nico tasksink.java Description: Binary data taskvent.java Description: Binary data taskwork.java Description: Binary data wuclient.java Description: Binary data wuserver.java Description: Binary data _

Re: [zeromq-dev] Java "Getting the Message Out" and "Divide and Conquer" examples

2010-09-08 Thread Pieter Hintjens
Thanks! On Wed, Sep 8, 2010 at 1:56 PM, Nicola Peduzzi wrote: > While learning this orgasmic library I think I can couple that with > contributing. > Bye! > Nico > ___ > zeromq-dev mailing list > zeromq-dev@lists.zeromq.org > http://lists.zeromq.org/mai

[zeromq-dev] Java "Handling Multiple Sockets" examples

2010-09-08 Thread Nicola Peduzzi
Yet some more. Haven't tested this two but they give the idea of how to use pollers in Java. Ciao mspoller.java Description: Binary data msreader.java Description: Binary data ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zerom

Re: [zeromq-dev] Java "Handling Multiple Sockets" examples

2010-09-08 Thread Pieter Hintjens
Great, thanks. I've added them to the repository (they should show up now) and added you to the contributors file. On Wed, Sep 8, 2010 at 2:22 PM, Nicola Peduzzi wrote: > Yet some more. Haven't tested this two but they give the idea of how to use > pollers in Java. > Ciao > _

Re: [zeromq-dev] Issues with Java binding

2010-09-08 Thread Martin Lucina
Hi, antenang...@yahoo.com said: > I'm trying to get the Java binding for 0mq to work, and I'm running into > issues. > First of all, the WIKI is not clear about where to extract the Jiava source - > I > tried a separate directory, with no luck. Then I extracted it on on top of my > 0mq instal

Re: [zeromq-dev] High REQ fan-in to XREP

2010-09-08 Thread Martin Lucina
matt_weinst...@yahoo.com said: > My device thread is running at SCHED_RR pri=66, I have approximately > 256 client threads, the time from last packet send() on REQ to last > device recv() on XREP is averaging around 40ms with a stddev of about > 36-40 (10,000 samples) > > There's limited or

Re: [zeromq-dev] High REQ fan-in to XREP

2010-09-08 Thread Martin Lucina
matt_weinst...@yahoo.com said: > > followup - are there known issues with using poll timeouts (2.0.7)? 1) Poll may return with no events set at all. Restart it. 2) Poll may return earlier than the timeout you set. For 2.0.x, do your own timekeeping and restart if necessary. -mato ___

Re: [zeromq-dev] High REQ fan-in to XREP

2010-09-08 Thread Matt Weinstein
Those are handled, and I've looked at the poll code a bit, I think I'm dealing with context switching issues .. On Sep 8, 2010, at 10:12 AM, Martin Lucina wrote: > matt_weinst...@yahoo.com said: >> >> followup - are there known issues with using poll timeouts (2.0.7)? > > 1) Poll may return wit

Re: [zeromq-dev] Segmentation fault with 2.0.8 in zmq_msg_close(), possible PyZMQ issue (or not)

2010-09-08 Thread Martin Lucina
sust...@250bpm.com said: > > On 7/9/2010, "Martin Lucina" wrote: > > >This would seem to indicate that message has already been freed, possibly > >by Python. However, what I'm wondering about is: > > > > If it fails on line 172, how did it ever get past lines 165/169? > > Maybe python gc have

Re: [zeromq-dev] ZMQ_SUB socket stuck in recv() call

2010-09-08 Thread Marc Rossi
Just an update. Have upgraded to 2.0.9, and problem still exists. Trying to get my hands around the zmq architecture so I can figure out what I'm doing wrong. I'm assuming the io_threads are responsible for pulling the data off the tcp socket and are working properly as a netstat shows no data i

[zeromq-dev] publishing messages from many threads and forwarding to single pub socket

2010-09-08 Thread david starkweather
Hello ! I managed to replicate the problem I've been having in this code example. http://pastebin.com/5Lsy47Cj The top program is a req/rep server that fields multipart messages with multiple threads and relays them to a sub socket in the main thread via inproc pipes. There is then a custom fo

Re: [zeromq-dev] High REQ fan-in to XREP

2010-09-08 Thread Sölvi Páll Ásgeirsson
Hi, On 09/07/2010 06:45 PM, Matt Weinstein wrote: > I've just put enough instrumentation in to get some numbers. > My device thread is running at SCHED_RR pri=66, I have approximately > 256 client threads, the time from last packet send() on REQ to last > device recv() on XREP is averaging ar