Author: remy.maucherat(a)jboss.com
Date: 2008-05-26 09:16:14 -0400 (Mon, 26 May 2008)
New Revision: 638
Modified:
trunk/java/org/jboss/web/cluster/ClusterListener.java
Log:
- Set error flag if there's a communication error with the proxy.
Modified: trunk/java/org/jboss/web/cluster/ClusterListener.java
===================================================================
--- trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-05-22 17:14:48 UTC (rev
637)
+++ trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-05-26 13:16:14 UTC (rev
638)
@@ -721,6 +721,8 @@
}
} catch (IOException e) {
+ // Most likely this is a connection error with the proxy
+ state = State.ERROR;
log.info("Error sending: " + command, e);
} finally {
if (keyCC != null) {
@@ -759,6 +761,9 @@
*/
protected Socket getConnection()
throws IOException {
+ if (proxyPort == -1) {
+ // FIXME: Determine connection port and address automagically
+ }
if (proxyAddress == null) {
return new Socket(InetAddress.getLocalHost(), proxyPort);
} else {
Show replies by date