[zeromq-dev] Java/Windows issues
Pavol Malosek
malosek at fastmq.com
Wed Aug 5 15:18:34 CEST 2009
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.
More information about the zeromq-dev
mailing list