Ignore:
Timestamp:
06/13/14 16:57:43 (10 years ago)
Author:
pharms
Message:
  • next solved issue with reused buffers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/proxy/HttpMonitoringProxyServlet.java

    r1563 r1567  
    258258            ByteBuffer next = delegate.next(); 
    259259             
    260             ByteBuffer clone = ByteBuffer.allocate(next.capacity()); 
     260            ByteBuffer clone1 = ByteBuffer.allocate(next.capacity()); 
     261            ByteBuffer clone2 = ByteBuffer.allocate(next.capacity()); 
     262             
    261263            next.rewind(); 
    262             clone.put(next); 
     264            clone1.put(next); 
    263265            next.rewind(); 
    264             clone.flip(); 
     266            clone2.put(next); 
     267            next.rewind(); 
     268             
     269            clone1.flip(); 
     270            clone2.flip(); 
    265271              
    266             exchangeListenerManager.onRequestContent(request, clone); 
     272            exchangeListenerManager.onRequestContent(request, clone1); 
    267273             
    268             return next; 
     274            return clone2; 
    269275        } 
    270276 
Note: See TracChangeset for help on using the changeset viewer.