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/test/org/apache/geronimo/network/protocol SocketProtocolStressTest.java
Date Sat, 13 Mar 2004 22:59:52 GMT
adc         2004/03/13 14:59:52

  Modified:    modules/network/src/test/org/apache/geronimo/network/protocol
                        SocketProtocolStressTest.java
  Log:
  More stress
  
  Revision  Changes    Path
  1.2       +8 -12     incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/SocketProtocolStressTest.java
  
  Index: SocketProtocolStressTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/network/src/test/org/apache/geronimo/network/protocol/SocketProtocolStressTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SocketProtocolStressTest.java	13 Mar 2004 22:51:33 -0000	1.1
  +++ SocketProtocolStressTest.java	13 Mar 2004 22:59:51 -0000	1.2
  @@ -237,17 +237,13 @@
           DatagramDownPacket packet = new DatagramDownPacket();
           ArrayList list = new ArrayList();
   
  -        ByteBuffer byteBuffer = ByteBuffer.allocate(6).order(ByteOrder.BIG_ENDIAN);
  -
  -        // Load the ByteBuffer with some bytes
  -        byteBuffer.put(0, (byte) 'H');
  -        byteBuffer.put(1, (byte) 'e');
  -        byteBuffer.put(2, (byte) 'l');
  -        byteBuffer.put(3, (byte) 'l');
  -        byteBuffer.put(4, (byte) 'o');
  -        byteBuffer.put(5, (byte) '!');
  -
  -        list.add(byteBuffer);
  +        final int COUNT = 102400;
  +        ByteBuffer buffer = ByteBuffer.allocate(COUNT);
  +        for (int i = 0; i < COUNT; i++) {
  +            buffer.put((byte) 0xba);
  +        }
  +        buffer.flip();
  +        list.add(buffer);
   
           packet.setBuffers(list);
   
  
  
  

Mime
View raw message