On Mon, Apr 7, 2014 at 8:34 PM, PICCA Frederic-Emmanuel
<[email protected]> wrote:
> this is not pytango but the tango library
Ah, OK.
>> The previous maintainer already uploaded 4.0.4 to unstable, there's
> no easy way to get back to 3.x .
>
> Yes usually we end up with this ugly 4.0.4.really.3.2.4 version number.
> But this must be discuss with the release team..
> or maybe an epoch can help
It seems it's not that hard to fix this issue. Please see the
mentioned test file, line 39 [1] which tests the connection first with
bind(). The same can be done in lib/cpp/client/zmqeventconsumer.cpp
with the following patch.
@@ -1170,6 +1170,7 @@ void ZmqEventConsumer::cleanup_EventChan
try
{
zmq::socket_t sender(zmq_context,ZMQ_REQ);
+ sender.bind(CTRL_SOCK_ENDPOINT);
sender.connect(CTRL_SOCK_ENDPOINT);
//
As you can see in lib/cpp/client/zmq.hpp line 253, it will throw an
exception making it fail like it would with Zer0MQ 3.x at connect()
time (see the same file, line 260). Needs testing, I hope I can do it
this afternoon.
Kind regards,
Laszlo/GCS
[1]
https://github.com/zeromq/libzmq/blob/master/tests/test_inproc_connect.cpp#L39
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]