Changeset 39d9d3f5 for apps/sam/java


Ignore:
Timestamp:
Aug 9, 2012 3:12:17 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1e8e2a19
Parents:
8bada7f8
Message:
  • SAM: Don't use direct byte buffers for streams (ticket #679) DatagramServer? one stays as it is a singleton.
Location:
apps/sam/java/src/net/i2p/sam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/sam/java/src/net/i2p/sam/SAMStreamSession.java

    r8bada7f8 r39d9d3f5  
    567567
    568568            int read = -1;
    569             ByteBuffer data = ByteBuffer.allocateDirect(SOCKET_HANDLER_BUF_SIZE);
     569            ByteBuffer data = ByteBuffer.allocate(SOCKET_HANDLER_BUF_SIZE);
    570570
    571571            try {
  • apps/sam/java/src/net/i2p/sam/SAMv2StreamSession.java

    r8bada7f8 r39d9d3f5  
    511511
    512512                                        int read = -1;
    513                                         ByteBuffer data = ByteBuffer.allocateDirect(SOCKET_HANDLER_BUF_SIZE);
     513                                        ByteBuffer data = ByteBuffer.allocate(SOCKET_HANDLER_BUF_SIZE);
    514514
    515515                                        try
Note: See TracChangeset for help on using the changeset viewer.