tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1434438 - /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Date Wed, 16 Jan 2013 22:11:53 GMT
Author: markt
Date: Wed Jan 16 22:11:53 2013
New Revision: 1434438

URL: http://svn.apache.org/viewvc?rev=1434438&view=rev
Log:
APR/native refactoring
- Clean-up

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=1434438&r1=1434437&r2=1434438&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Wed Jan 16 22:11:53 2013
@@ -1385,6 +1385,7 @@ public class AprEndpoint extends Abstrac
             connectionCount = 0;
         }
 
+
         /**
          * Add specified socket and associated pool to the poller. The socket
          * will be added to a temporary array, and polled first after a maximum
@@ -2142,8 +2143,8 @@ public class AprEndpoint extends Abstrac
      */
     protected class SocketProcessor implements Runnable {
 
-        protected SocketWrapper<Long> socket = null;
-        protected SocketStatus status = null;
+        private final SocketWrapper<Long> socket;
+        private final SocketStatus status;
 
         public SocketProcessor(SocketWrapper<Long> socket,
                 SocketStatus status) {
@@ -2163,7 +2164,6 @@ public class AprEndpoint extends Abstrac
                 if (state == Handler.SocketState.CLOSED) {
                     // Close socket and pool
                     destroySocket(socket.getSocket().longValue());
-                    socket = null;
                 } else if (state == Handler.SocketState.LONG) {
                     socket.access();
                     if (socket.async) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message