[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/socket ...
Tom Elrod
tom.elrod at jboss.com
Thu Dec 21 11:43:33 EST 2006
User: telrod
Date: 06/12/21 11:43:33
Modified: src/main/org/jboss/remoting/transport/socket
ServerThread.java
Log:
JBREM-655 - updated server thread to update its thread name with client address when woken up with new client socket connection.
Revision Changes Path
1.31 +3 -3 JBossRemoting/src/main/org/jboss/remoting/transport/socket/ServerThread.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ServerThread.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/socket/ServerThread.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- ServerThread.java 3 Nov 2006 16:19:16 -0000 1.30
+++ ServerThread.java 21 Dec 2006 16:43:33 -0000 1.31
@@ -58,7 +58,7 @@
*
* @author <a href="mailto:bill at jboss.org">Bill Burke</a>
* @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
- * @version $Revision: 1.30 $
+ * @version $Revision: 1.31 $
*/
public class ServerThread extends Thread
{
@@ -271,8 +271,8 @@
public synchronized void wakeup(Socket socket, int timeout, Map metadata) throws Exception
{
this.socketWrapper = createServerSocket(socket, timeout, metadata);
-// String name = "SocketServerInvokerThread-" + socket.getInetAddress().getHostAddress() + "-" + nextID();
-// super.setName(name);
+ String name = "SocketServerInvokerThread-" + socket.getInetAddress().getHostAddress() + "-" + nextID();
+ super.setName(name);
running = true;
handlingResponse = true;
this.notify();
More information about the jboss-cvs-commits
mailing list