tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1651441 - in /tomcat/trunk/java/org/apache/tomcat/util/net: NioEndpoint.java SecureNioChannel.java
Date Tue, 13 Jan 2015 19:03:31 GMT
Author: markt
Date: Tue Jan 13 19:03:30 2015
New Revision: 1651441

URL: http://svn.apache.org/r1651441
Log:
Remove NO-OP method from interface

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
    tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?rev=1651441&r1=1651440&r2=1651441&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Tue Jan 13 19:03:30 2015
@@ -1588,12 +1588,9 @@ public class NioEndpoint extends Abstrac
         }
 
         @Override
-        public ByteBuffer expand(ByteBuffer buffer, int remaining) {return buffer;}
-        @Override
         public ByteBuffer getReadBuffer() {return readbuf;}
         @Override
         public ByteBuffer getWriteBuffer() {return writebuf;}
-
     }
 
     // ------------------------------------------------ Handler Inner Interface

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java?rev=1651441&r1=1651440&r2=1651441&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java Tue Jan 13 19:03:30
2015
@@ -63,10 +63,6 @@ public class SecureNioChannel extends Ni
         //selector pool for blocking operations
         this.pool = pool;
 
-        //ensure that the application has a large enough read/write buffers
-        //by doing this, we should not encounter any buffer overflow errors
-        bufHandler.expand(bufHandler.getReadBuffer(), appBufSize);
-        bufHandler.expand(bufHandler.getWriteBuffer(), appBufSize);
         reset();
     }
 
@@ -531,7 +527,6 @@ public class SecureNioChannel extends Ni
      * when buffer overflow exceptions happen
      */
     public static interface ApplicationBufferHandler {
-        public ByteBuffer expand(ByteBuffer buffer, int remaining);
         public ByteBuffer getReadBuffer();
         public ByteBuffer getWriteBuffer();
     }



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


Mime
View raw message