Re: [zeromq-dev] (py)zmq PUSH/PULL, freebsd, kqueue error

2011-10-26 Thread Gábor Farkas
On Mon, Oct 17, 2011 at 4:19 PM, Pieter Hintjens p...@imatix.com wrote: 2011/10/17 Gábor Farkas gabor.far...@gmail.com: i have an application in python, using PUSH/PULL zmq sockets, on freebsd. sometimes the process with the PUSH socket dies with this message: Looks like 0MQ is polling on a

Re: [zeromq-dev] (py)zmq PUSH/PULL, freebsd, kqueue error

2011-10-26 Thread Gábor Farkas
On Mon, Oct 17, 2011 at 3:43 PM, Chuck Remes cremes.devl...@mac.com wrote: On Oct 17, 2011, at 3:59 AM, Gábor Farkas wrote: hi, i have an application in python, using PUSH/PULL zmq sockets, on freebsd. sometimes the process with the PUSH socket dies with this message: Exception

Re: [zeromq-dev] About gracefully shutdown of own_t object

2011-10-26 Thread Martin Sustrik
Hi Raocheng, But I think that there is still possibility of shutting down an object while a command for this object is still in flight: Suppose the sender and the receiver belongs to two different threads and: 1) At T1, processed_seqnum is equal to send_seqnum, then the receiving thread

[zeromq-dev] Cannot build a working JZMQ on Windows: which git branch to take?

2011-10-26 Thread И.L.
Hi all. I can't run even the simplest test case: C:\zeromq\zeromq-jzmq-040c4c6\perfjava -Xcheck:jni -verbose:jni,class -classpath .;C:\zeromq\zeromq-jzmq-040c4c6\lib\zmq.jar local_lat 127.0.0.1 1 1 Exception in thread main java.lang.UnsatisfiedLinkError: org.zeromq.ZMQ$Context.construct(I)V

[zeromq-dev] [PATCH] Added compile-time test for SOCK_CLOEXEC

2011-10-26 Thread Martin Sustrik
From 6c1b50cfab1529e866e40c037ce1be7027423af0 Mon Sep 17 00:00:00 2001 From: Mikko Koppanen mkoppa...@php.net Date: Wed, 26 Oct 2011 11:26:00 +0200 Subject: [PATCH] Added compile-time test for SOCK_CLOEXEC Signed-off-by: Mikko Koppanen mkoppa...@php.net --- acinclude.m4 | 22

[zeromq-dev] Meetup in Kyiv - Summary

2011-10-26 Thread Martin Sustrik
Hi all, It been a good tradition to post the summaries from individual meetups here. The meetup in Kyiv was held in the same day as PyCon after-party and turned into an after-after-party so there wasn't much technical stuff discussed :) Anyway, one point that was raised several times was the

Re: [zeromq-dev] [PATCH] Throw noncontinuable exception on Win32 instead of abort

2011-10-26 Thread Martin Sustrik
Hi Paul, Two comments: 1. The patch doesn't seem to print out the filename and the line number of where the expection happened. This is crucial for identifying what exactly happened. 2. Why use 0x4015 instead of STATUS_FATAL_APP_EXIT? Martin

Re: [zeromq-dev] querying what a SUB socket is subscribed to

2011-10-26 Thread Martin Sustrik
Hi Gaspar, is there a way to query what subscriptions a socket has? I'm using PyZMQ (2.1.10 with zmq 2.1.10), and I've tried getsockopt as suggested by the documentation, but I get the following error: s.setsockopt(zmq.SUBSCRIBE, foo) s.getsockopt(zmq.SUBSCRIBE) Traceback (most

Re: [zeromq-dev] XREQ/XREP messaging flow

2011-10-26 Thread Martin Sustrik
On 10/25/2011 12:23 PM, Umut Aydin wrote: Could someone separate a few minutes to explain what I'm missing here? Here is my example: http://pastebin.com/Ym0qxjgX XREP socket works by sending a 2-part message, first part being the ID of the client, second one the payload itself. When sending

Re: [zeromq-dev] (py)zmq PUSH/PULL, freebsd, kqueue error

2011-10-26 Thread Chuck Remes
On Oct 26, 2011, at 3:00 AM, Gábor Farkas wrote: is there any way to verify that the compiled zeromq does not use kqueue? (i mean, is there any way to verify that i applied the switch correctly?) If you read the config.log after building, it should show all of the arguments passed to the

Re: [zeromq-dev] (py)zmq PUSH/PULL, freebsd, kqueue error

2011-10-26 Thread Martin Sustrik
Hi Gabor, i have an application in python, using PUSH/PULL zmq sockets, on freebsd. sometimes the process with the PUSH socket dies with this message: Exception zmq.core.error.ZMQError: ZMQError() in zmq.core.socket.Socket object at 0x80d0c12b8 ignored Bad file descriptor rc != -1

Re: [zeromq-dev] (py)zmq PUSH/PULL, freebsd, kqueue error

2011-10-26 Thread Gábor Farkas
2011/10/26 Martin Sustrik sust...@250bpm.com: Hi Gabor, i have an application in python, using PUSH/PULL zmq sockets, on freebsd. sometimes the process with the PUSH socket dies with this message: Exception zmq.core.error.ZMQError: ZMQError() in zmq.core.socket.Socket object at 0x80d0c12b8

Re: [zeromq-dev] Cannot build a working JZMQ on Windows: which git branch to take?

2011-10-26 Thread Steven McCoy
2011/10/26 Igor 'Lo' (И.L.) bombsiteunres...@gmail.com Hi all. I can't run even the simplest test case: C:\zeromq\zeromq-jzmq-040c4c6\perfjava -Xcheck:jni -verbose:jni,class -classpath .;C:\zeromq\zeromq-jzmq-040c4c6\lib\zmq.jar local_lat 127.0.0.1 1 1 Exception in thread main

[zeromq-dev] Quick JZMQ howto on Windows

2011-10-26 Thread Steven McCoy
1) Build ZeroMQ or install a prepared package. I built with SDK 7.1 but I also have MSVC 2010 Express and Pro installed. http://www.microsoft.com/download/en/details.aspx?id=8279 2) Clone JZMQ from GitHub, might be easier with Cygwin. $ *git clone https://github.com/zeromq/jzmq.git*

Re: [zeromq-dev] Behavior of Labels, Identities, and Socket Types in 3.0

2011-10-26 Thread MinRK
Here's a script with pyzmq that runs various combinations of sockets, and a side-by-side diff comparing the behaviour when run with 2.1.10 vs 3.0.2: https://gist.github.com/1317498 Should be trivial to add more socket combinations. The script does rely on pyzmq's send/recv_multipart supporting

Re: [zeromq-dev] Cannot build a working JZMQ on Windows: which git branch to take?

2011-10-26 Thread Joshua Foster
The simplest way to get jzmq working on windows is to put the libzmq.dll and the jzmq.dll in a directory on the PATH environment variable. Joshua On 10/26/2011 1:20 PM, Steven McCoy wrote: 2011/10/26 Igor 'Lo' (?.L.) bombsiteunres...@gmail.com mailto:bombsiteunres...@gmail.com Hi all.

Re: [zeromq-dev] querying what a SUB socket is subscribed to

2011-10-26 Thread Pieter Hintjens
On Wed, Oct 26, 2011 at 8:56 PM, Martin Sustrik sust...@250bpm.com wrote: Can you point to the documentation that suggest that getsockopt can be used with ZMQ_SUBSCRIBE? That kind of thing is not possible and the documentation should be fixed to reflect the fact. The documentation doesn't

Re: [zeromq-dev] [PATCH] Throw noncontinuable exception on Win32 instead of abort

2011-10-26 Thread Paul Betts
1. The patch doesn't seem to print out the filename and the line number of where the expection happened. This is crucial for identifying what exactly happened. I don't quite understand this - if you've got a debugger attached, the execution will stop at the assert instead of terminating,

Re: [zeromq-dev] Behavior of Labels, Identities, and Socket Types in 3.0

2011-10-26 Thread Gregory Szorc
On 10/26/11 12:37 PM, MinRK wrote: Here's a script with pyzmq that runs various combinations of sockets, and a side-by-side diff comparing the behaviour when run with 2.1.10 vs 3.0.2: https://gist.github.com/1317498 Should be trivial to add more socket combinations. Great work! I

Re: [zeromq-dev] New Common Lisp zeromq binding

2011-10-26 Thread Lucas Hope
Hi Nicolas, I use cl-zmq for a few projects - I even forked it to do some small compatibility changes I needed to upgrade it from 2.0.x compatibility to 2.1.x compatibility. ( https://github.com/lhope/cl-zmq ) As far as I know, the old author has all-but abandoned the project. Is your new