Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[JGRP-982] Use multicast socket workaround on HP-UX too.

  • Loading branch information...
commit 874d68c4932a7353331bcbb82564aac633c11ff0 1 parent 8928150
galderz authored
View
4 src/org/jgroups/protocols/MPING.java
@@ -20,7 +20,7 @@
* back via the regular transport (e.g. TCP) to the sender (discovery request contained sender's regular address,
* e.g. 192.168.0.2:7800).
* @author Bela Ban
- * @version $Id: MPING.java,v 1.46 2009/01/05 08:24:06 belaban Exp $
+ * @version $Id: MPING.java,v 1.46.2.1 2009/05/18 16:25:57 galderz Exp $
*/
public class MPING extends PING implements Runnable {
@@ -28,7 +28,7 @@
static {
- can_bind_to_mcast_addr=Util.checkForLinux() || Util.checkForSolaris();
+ can_bind_to_mcast_addr=Util.checkForLinux() || Util.checkForSolaris() || Util.checkForHp();
}
View
6 src/org/jgroups/protocols/UDP.java
@@ -42,7 +42,7 @@
* </ul>
*
* @author Bela Ban
- * @version $Id: UDP.java,v 1.196 2009/01/06 16:43:12 belaban Exp $
+ * @version $Id: UDP.java,v 1.195.2.1 2009/05/18 16:25:57 galderz Exp $
*/
@DeprecatedProperty(names={"num_last_ports","null_src_addresses", "send_on_all_interfaces", "send_interfaces"})
public class UDP extends TP {
@@ -58,7 +58,7 @@
static {
- can_bind_to_mcast_addr=Util.checkForLinux() || Util.checkForSolaris();
+ can_bind_to_mcast_addr=Util.checkForLinux() || Util.checkForSolaris() || Util.checkForHp();
}
/* ------------------------------------------ Properties ------------------------------------------ */
@@ -584,7 +584,7 @@ private void setBufferSize(DatagramSocket sock, int send_buf_size, int recv_buf_
try {
sock.setReceiveBufferSize(recv_buf_size);
int actual_size=sock.getReceiveBufferSize();
- if(actual_size < recv_buf_size && log.isWarnEnabled()) {
+ if(actual_size < send_buf_size && log.isWarnEnabled()) {
log.warn("receive buffer of socket " + sock + " was set to " +
Util.printBytes(recv_buf_size) + ", but the OS only allocated " +
Util.printBytes(actual_size) + ". This might lead to performance problems. Please set your " +
View
6 src/org/jgroups/util/Util.java
@@ -28,7 +28,7 @@
/**
* Collection of various utility routines that can not be assigned to other classes.
* @author Bela Ban
- * @version $Id: Util.java,v 1.183 2008/12/11 12:55:51 vlada Exp $
+ * @version $Id: Util.java,v 1.183.2.1 2009/05/18 16:25:58 galderz Exp $
*/
public class Util {
@@ -2593,6 +2593,10 @@ public static boolean checkForLinux() {
return checkForPresence("os.name", "linux");
}
+ public static boolean checkForHp() {
+ return checkForPresence("os.name", "hp");
+ }
+
public static boolean checkForSolaris() {
return checkForPresence("os.name", "sun");
}
Please sign in to comment.
Something went wrong with that request. Please try again.