[zeromq-dev] Java/Windows issues

Robin Weisberg robin at scout-trading.com
Thu Aug 6 15:52:14 CEST 2009


That's great, thanks!

Has anyone had a chance to look at the other issue? Let me know if you have
having trouble reproducing it, I can try to isolate it.

Other issue was: "I have a linux c++ publisher publishing using pgm to
multiple java windows clients. The linux client is registering a global
exchange and the windows clients register a local queue to that exchange. It
appears that after restarting the linux publisher the windows client stops
receiving messages until it is also restarted."
I've tested Linux to Linux w/ the same app and no issue w/ restarting. Also
TCP doesn't have this issue. May be an issue w/ the windows pgm
implementation.

On Wed, Aug 5, 2009 at 9:18 AM, Pavol Malosek <malosek at fastmq.com> wrote:

> Hello Robin,
>
> Problem with multiple PGM/UDP listeners on single Linux box has been solved
> in commit  3268fa4adfcc032698f9613ed473b26308849d21.
>
> diff --git a/libzmq/pgm_socket.cpp b/libzmq/pgm_socket.cpp
> index 64e641b..78db77b 100644
> --- a/libzmq/pgm_socket.cpp
> +++ b/libzmq/pgm_socket.cpp
> @@ -177,7 +177,15 @@ void zmq::pgm_socket_t::open_transport (void)
>
>    //  Receiver transport.
>    if (receiver) {
> -
> +
> +        //  When using UDP-encapsulation enables socket address sharing
> via
> +        //  SO_REUSEADDR to allow multiple applications to bind to the
> same
> +        //  UDP port.
> +        if (udp_encapsulation) {
> +            rc = pgm_transport_set_multicast_loop (g_transport, TRUE);
> +            assert (rc == 0);
> +        }
> +
>
> Thanks for your feedback.
>
> malo
>
>
>  ----- Original Message ----- From: Robin Weisberg
>> To: Pavol Malosek
>> Cc: Martin Sustrik ; zeromq-dev at lists.zeromq.org
>> Sent: Wednesday, August 05, 2009 12:17 AM
>> Subject: Re: [zeromq-dev] Java/Windows issues
>>
>>
>> The error actually occurs when using UDP encapsulation. I can't do the non
>> udp test right now as
>> I'm temporarily w/o root, its possible that non udp doesn't have this
>> issue.
>>
>> Starting the second receiver results in:
>> $ ./pgm_remote_thr wimp "eth0;239.191.1.2:7500" 100 100
>>
>> iface to connect to local_exchange: eth0;239.191.1.2:7500
>> message size: 100 [B]
>> message count: 100
>> lt-pgm_remote_thr: pgm_socket.cpp:296: void zmq::pgm_socket_t::open_
>> transport(): Assertion `rc == 0' failed.
>> Aborted
>>
>>
>> The publisher was started with:
>>
>> $ ./pgm_local_thr wimp "udp:eth0;239.191.1.2:7500" 100 100
>> local_exchange network: zmq.pgm://udp:eth0;239.191.1.2:7500
>> message size: 100 [B]
>> message count: 100
>> Start pgm_remote_thr on remote host and pres enter to continue.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090806/869826b3/attachment.htm>


More information about the zeromq-dev mailing list