[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/socket ...
Tom Elrod
tom.elrod at jboss.com
Thu Dec 21 11:40:35 EST 2006
User: telrod
Date: 06/12/21 11:40:35
Modified: src/main/org/jboss/remoting/transport/socket Tag:
remoting_2_x ServerThread.java
Log:
JBREM-655 - make sure server thread name gets updated with new client address when woken up with new client socket connection.
Revision Changes Path
No revision
No revision
1.29.2.4 +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.29.2.3
retrieving revision 1.29.2.4
diff -u -b -r1.29.2.3 -r1.29.2.4
--- ServerThread.java 6 Nov 2006 15:21:51 -0000 1.29.2.3
+++ ServerThread.java 21 Dec 2006 16:40:35 -0000 1.29.2.4
@@ -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.29.2.3 $
+ * @version $Revision: 1.29.2.4 $
*/
public class ServerThread extends Thread
{
@@ -273,8 +273,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