[jboss-remoting-commits] JBoss Remoting SVN: r5064 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket.
jboss-remoting-commits at lists.jboss.org
jboss-remoting-commits at lists.jboss.org
Sun Apr 19 00:29:55 EDT 2009
Author: ron.sigal at jboss.com
Date: 2009-04-19 00:29:54 -0400 (Sun, 19 Apr 2009)
New Revision: 5064
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java
Log:
JBREM-1123: Added shutdownImmediately().
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2009-04-19 03:44:19 UTC (rev 5063)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2009-04-19 04:29:54 UTC (rev 5064)
@@ -359,7 +359,29 @@
if (trace) log.trace(this + " shutting down");
notifyAll();
}
+
+ public void shutdownImmediately()
+ {
+ if (trace) log.trace("attempting to shut down immediately " + this);
+ shutdown = true;
+ try
+ {
+ if (socketWrapper != null)
+ {
+ String desc = socketWrapper.toString();
+ socketWrapper.close();
+ if (trace) log.trace(this + " closing socketWrapper: " + desc);
+ }
+ }
+ catch (Exception ex)
+ {
+ log.debug("failed to close socket wrapper", ex);
+ }
+
+ if (trace) log.trace(this + " shutting down");
+ }
+
/**
* Sets if server thread should check connection before continue to process on next invocation
* request. If is set to true, will send an ACK to client to verify client is still connected
More information about the jboss-remoting-commits
mailing list