[zeromq-dev] HWM in 2.1
Koert Kuipers
Koert.Kuipers at diamondnotch.com
Tue Jan 11 03:53:15 CET 2011
I downloaded pyzmq-dev.tar.gz on 2010-01-05.
I just tried to download pyzmq-dev.tar.gz again but the link is dead (I get an XML page with Access Denied). I can download the zip version so I did that on windows and tried to build it but it dies. This is what I get:
C:\Devel\src\pyzmq-2.1.0dev>setup.py install
running install
running build
running build_py
creating build
creating build\lib.win32-2.6
creating build\lib.win32-2.6\zmq
copying zmq\__init__.py -> build\lib.win32-2.6\zmq
creating build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_context.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_device.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_imports.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_ioloop.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_log.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_message.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_monqueue.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_multipart.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_pair.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_poll.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_pubsub.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_reqrep.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\test_socket.py -> build\lib.win32-2.6\zmq\tests
copying zmq\tests\__init__.py -> build\lib.win32-2.6\zmq\tests
creating build\lib.win32-2.6\zmq\eventloop
copying zmq\eventloop\ioloop.py -> build\lib.win32-2.6\zmq\eventloop
copying zmq\eventloop\stack_context.py -> build\lib.win32-2.6\zmq\eventloop
copying zmq\eventloop\win32_support.py -> build\lib.win32-2.6\zmq\eventloop
copying zmq\eventloop\zmqstream.py -> build\lib.win32-2.6\zmq\eventloop
copying zmq\eventloop\__init__.py -> build\lib.win32-2.6\zmq\eventloop
creating build\lib.win32-2.6\zmq\log
copying zmq\log\handlers.py -> build\lib.win32-2.6\zmq\log
copying zmq\log\__init__.py -> build\lib.win32-2.6\zmq\log
creating build\lib.win32-2.6\zmq\core
copying zmq\core\__init__.py -> build\lib.win32-2.6\zmq\core
creating build\lib.win32-2.6\zmq\devices
copying zmq\devices\basedevice.py -> build\lib.win32-2.6\zmq\devices
copying zmq\devices\monitoredqueuedevice.py -> build\lib.win32-2.6\zmq\devices
copying zmq\devices\__init__.py -> build\lib.win32-2.6\zmq\devices
creating build\lib.win32-2.6\zmq\utils
copying zmq\utils\jsonapi.py -> build\lib.win32-2.6\zmq\utils
copying zmq\utils\strtypes.py -> build\lib.win32-2.6\zmq\utils
copying zmq\utils\__init__.py -> build\lib.win32-2.6\zmq\utils
copying zmq\core\context.pxd -> build\lib.win32-2.6\zmq\core
copying zmq\core\czmq.pxd -> build\lib.win32-2.6\zmq\core
copying zmq\core\message.pxd -> build\lib.win32-2.6\zmq\core
copying zmq\core\socket.pxd -> build\lib.win32-2.6\zmq\core
copying zmq\core\stopwatch.pxd -> build\lib.win32-2.6\zmq\core
copying zmq\devices\monitoredqueue.pxd -> build\lib.win32-2.6\zmq\devices
copying zmq\utils\allocate.pxd -> build\lib.win32-2.6\zmq\utils
copying zmq\utils\buffers.pxd -> build\lib.win32-2.6\zmq\utils
copying zmq\utils\pyversion_compat.h -> build\lib.win32-2.6\zmq\utils
copying zmq\utils\zmq_compat.h -> build\lib.win32-2.6\zmq\utils
running build_ext
building 'zmq.core.constants' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\zmq
creating build\temp.win32-2.6\Release\zmq\core
C:\Devel\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Izmq\utils -Izmq\core -Iz
mq\devices -IC:\Devel\mingw\msys\1.0\local\include -IC:\Devel\Python26\include -
IC:\Devel\Python26\PC -c zmq\core\constants.c -o build\temp.win32-2.6\Release\zm
q\core\constants.o
zmq\core\constants.c: In function 'initconstants':
zmq\core\constants.c:911:30: error: 'ZMQ_XPUB' undeclared (first use in this fun
ction)
zmq\core\constants.c:911:30: note: each undeclared identifier is reported only o
nce for each function it appears in
zmq\core\constants.c:923:30: error: 'ZMQ_XSUB' undeclared (first use in this fun
ction)
zmq\core\constants.c:1259:30: error: 'ZMQ_RECOVERY_IVL_MSEC' undeclared (first u
se in this function)
error: command 'gcc' failed with exit status 1
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of MinRK
Sent: Monday, January 10, 2011 8:51 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] HWM in 2.1
No, pyzmq does not use static zmq, unless you use the pyzmq-static project, which is a fork of our work by Brandon Craig Rhodes.
-MinRK
On Mon, Jan 10, 2011 at 17:40, Koert Kuipers <Koert.Kuipers at diamondnotch.com<mailto:Koert.Kuipers at diamondnotch.com>> wrote:
On windows does pyzmq use the static zmq library or the dynamic one?
I just noticed that zeromq 2.1.0 refuses to build a static library (with mingw at least, not sure why) so I now only have a libzmq.dll and my libzmq.a is stale
From: zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org> [mailto:zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org>] On Behalf Of MinRK
Sent: Monday, January 10, 2011 7:40 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] HWM in 2.1
Can I ask when you downloaded pyzmq-dev? That's a manual snapshot of pyzmq master, and we didn't update it for a while. If it was more than a few days ago, can you download the current file and try again?
You can check that HWM is working by ensuring that the roundtrip value is correct:
s.setsockopt(zmq.HWM, 10)
print s.getsockopt(zmq.HWM)
-MinRK
On Mon, Jan 10, 2011 at 16:34, Koert Kuipers <Koert.Kuipers at diamondnotch.com<mailto:Koert.Kuipers at diamondnotch.com>> wrote:
Sure. On 2010-01-05 I downloaded zeromq-2.1.0.tar.gz (released on 2010/12/01 it says) and pyzmq-dev.tar.gz (from the available downloads on the git page). I still have the files…. Can mail them if that helps.
Best,
Koert
From: zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org> [mailto:zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org>] On Behalf Of MinRK
Sent: Sunday, January 09, 2011 10:46 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] HWM in 2.1
I don't see this behavior with current git HEAD of pyzmq and zeromq. Can you provide details about exact revision of each?
-MinRK
On Sun, Jan 9, 2011 at 14:23, Koert Kuipers <Koert.Kuipers at diamondnotch.com<mailto:Koert.Kuipers at diamondnotch.com>> wrote:
I do not see same behavior in Java. Does it have something to do with python bindings for 2.1.0 (pyzmq-2.1.0dev)?
********** Test.java **********
import org.zeromq.ZMQ;
public class Test {
public static void main(String[] args) {
final ZMQ.Context context = ZMQ.context(1);
final ZMQ.Socket socket = context.socket(ZMQ.PUSH);
socket.setHWM(100);
socket.connect("tcp://localhost:5051");
for (int i=0; i <1000; i++) {
socket.send(new byte[0], 0);
System.out.println(i);
}
}
}
From: zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org> [mailto:zeromq-dev-bounces at lists.zeromq.org<mailto:zeromq-dev-bounces at lists.zeromq.org>] On Behalf Of Koert Kuipers
Sent: Sunday, January 09, 2011 4:50 PM
To: ZeroMQ development list
Subject: [zeromq-dev] HWM in 2.1
The little python program below connects to a socket where nobody is listening. With zmq 2.0.10 it would halt after 100 messages. However with zmq 2.1.0 it keeps going all the way to 1000 messages. Why is this? I see this behavior both under Linux and Windows.
Koert
********** test.py **********
import zmq
context = zmq.Context()
socket = context.socket(zmq.PUSH)
socket.setsockopt(zmq.HWM, 100)
socket.connect("tcp://localhost:5051")
for i in range(1, 1000):
socket.send('')
print i
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110110/d9765e23/attachment.htm>
More information about the zeromq-dev
mailing list