Changeset 7825f0f


Ignore:
Timestamp:
Apr 9, 2015 4:04:06 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5555c52
Parents:
e5b7e97
Message:

i2ptunnel: Remove null workaround and stat, testing passed (ticket #335)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPServer.java

    re5b7e97 r7825f0f  
    191191        _spoofHost = (spoofHost != null && spoofHost.trim().length() > 0) ? spoofHost.trim() : null;
    192192        getTunnel().getContext().statManager().createRateStat("i2ptunnel.httpserver.blockingHandleTime", "how long the blocking handle takes to complete", "I2PTunnel.HTTPServer", new long[] { 60*1000, 10*60*1000, 3*60*60*1000 });
    193         getTunnel().getContext().statManager().createRateStat("i2ptunnel.httpNullWorkaround", "How often an http server works around a streaming lib or i2ptunnel bug", "I2PTunnel.HTTPServer", new long[] { 60*1000, 10*60*1000 });
    194193    }
    195194
     
    842841        //    _log.debug("Read the http command [" + command.toString() + "]");
    843842       
    844         // FIXME we probably don't need or want this in the outgoing direction
    845         int trimmed = 0;
    846         if (command.length() > 0) {
    847             for (int i = 0; i < command.length(); i++) {
    848                 if (command.charAt(i) == 0) {
    849                     command = command.deleteCharAt(i);
    850                     i--;
    851                     trimmed++;
    852                 }
    853             }
    854         }
    855         if (trimmed > 0)
    856             ctx.statManager().addRateData("i2ptunnel.httpNullWorkaround", trimmed);
    857        
    858843        int totalSize = command.length();
    859844        int i = 0;
Note: See TracChangeset for help on using the changeset viewer.