geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/network/src/java/org/apache/geronimo/network/protocol SocketProtocol.java
Date Tue, 16 Mar 2004 03:33:18 GMT
adc         2004/03/15 19:33:18

  Modified:    modules/network/src/java/org/apache/geronimo/network/protocol
                        SocketProtocol.java
  Log:
  Release buffers as soon as possible
  
  Revision  Changes    Path
  1.3       +4 -1      incubator-geronimo/modules/network/src/java/org/apache/geronimo/network/protocol/SocketProtocol.java
  
  Index: SocketProtocol.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/network/src/java/org/apache/geronimo/network/protocol/SocketProtocol.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SocketProtocol.java	10 Mar 2004 09:59:13 -0000	1.2
  +++ SocketProtocol.java	16 Mar 2004 03:33:18 -0000	1.3
  @@ -262,6 +262,8 @@
                   }
               }
   
  +            // release old buffers
  +            sendBuffer = null;
   
               // We are done writing.
               log.trace("OP_READ " + selectionKey);
  @@ -335,6 +337,7 @@
                       UpPacket packet = new UpPacket();
                       packet.setBuffer(bodyBuffer);
   
  +                    // release old buffer
                       bodyBuffer = null;
   
                       up.sendUp(packet);
  
  
  

Mime
View raw message