[zeromq-dev] Question for Python example in Perf folder
Martin Sustrik
sustrik at fastmq.com
Wed Apr 22 18:01:05 CEST 2009
Hi,
> Yes, the example you have provided works. But I was trying a message
> size other than 1, and it didn't work for me.
Python API was extended when moving from version 0.5 to 0.6, however,
python performance tests haven't been updated to reflect the change. The
problem slipped through QA as we are using 1 byte messages that happen
to work by coincidence. I'm terribly sorry about this.
Find fixed performance test attached.
> Also, I tried to wrap the functionality of py_remote_thr in a class. The
> method "bind('EL','GQ')' method gives an assertion error in locator.cpp
> line 93
> cmd == get_ok_id
The problem here is that the global object ("service") that you are
trying to bind to is not running.
The idea is that services have to be online before clients are able to
connect to them.
If you want clients not to fail when the service is not available, you
can supply a list of services to zmq_server on startup. In that case
clients are periodically trying to reconnect to the service even if it's
not available at the moment. See zmq_server man page for more information:
http://www.zeromq.org/local--files/area:docs-v06/zmq_server.pdf
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py_local_lat.py
Type: text/x-python
Size: 2156 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090422/2bcce4ed/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py_local_thr.py
Type: text/x-python
Size: 2154 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090422/2bcce4ed/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py_remote_lat.py
Type: text/x-python
Size: 1831 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090422/2bcce4ed/attachment-0002.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py_remote_thr.py
Type: text/x-python
Size: 1556 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090422/2bcce4ed/attachment-0003.py>
More information about the zeromq-dev
mailing list