Changeset 981737f


Ignore:
Timestamp:
Apr 25, 2019 4:16:32 PM (11 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
46e3174
Parents:
5f01796
Message:

i2ptunnel: Force connect delay and bulk profile for most
client tunnel types, and hide from UI
Reduce delay
Set IRC to bulk

Location:
apps/i2ptunnel
Files:
7 edited

Legend:

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

    r5f01796 r981737f  
    228228        _proxyNonce = Long.toString(_context.random().nextLong());
    229229        // proxyList = new ArrayList();
    230         if (tunnel.getClientOptions().getProperty("i2p.streaming.connectDelay") == null)
    231             tunnel.getClientOptions().setProperty("i2p.streaming.connectDelay", "1000");
    232230
    233231        setName("HTTP Proxy on " + getTunnel().listenHost + ':' + localPort);
     
    256254            }
    257255        }
    258         if (tunnel.getClientOptions().getProperty("i2p.streaming.connectDelay") == null)
    259             tunnel.getClientOptions().setProperty("i2p.streaming.connectDelay", "1000");
    260256
    261257        setName("HTTP Proxy on " + tunnel.listenHost + ':' + localPort);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java

    r5f01796 r981737f  
    278278                               I2PTunnel tunnel) throws IllegalArgumentException {
    279279        super(localPort, ownDest, l, notifyThis, handlerName, tunnel);
     280        // force connect delay and bulk profile
     281        Properties opts = tunnel.getClientOptions();
     282        opts.setProperty("i2p.streaming.connectDelay", "200");
     283        opts.remove("i2p.streaming.maxWindowSize");
    280284        _proxyList = new ArrayList<String>(4);
    281285        _proxyNonce = new byte[PROXYNONCE_BYTES];
     
    294298            throws IllegalArgumentException {
    295299        super(localPort, l, sktMgr, tunnel, notifyThis, clientId);
     300        // force connect delay and bulk profile
     301        Properties opts = tunnel.getClientOptions();
     302        opts.setProperty("i2p.streaming.connectDelay", "200");
     303        opts.remove("i2p.streaming.maxWindowSize");
    296304        _proxyList = new ArrayList<String>(4);
    297305        _proxyNonce = new byte[PROXYNONCE_BYTES];
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelIRCClient.java

    r5f01796 r981737f  
    6363              notifyThis,
    6464              "IRC Client on " + tunnel.listenHost + ':' + localPort, tunnel, pkf);
     65        // force connect delay and bulk profile
     66        Properties opts = tunnel.getClientOptions();
     67        opts.setProperty("i2p.streaming.connectDelay", "200");
     68        opts.remove("i2p.streaming.maxWindowSize");
    6569       
    6670        _addrs = new ArrayList<I2PSocketAddress>(4);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/I2PSOCKSTunnel.java

    r5f01796 r981737f  
    5252    public I2PSOCKSTunnel(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) {
    5353        super(localPort, ownDest, l, notifyThis, "SOCKS Proxy on " + tunnel.listenHost + ':' + localPort, tunnel, pkf);
     54        // force connect delay and bulk profile
     55        Properties opts = tunnel.getClientOptions();
     56        opts.setProperty("i2p.streaming.connectDelay", "200");
     57        opts.remove("i2p.streaming.maxWindowSize");
    5458
    5559        setName("SOCKS Proxy on " + tunnel.listenHost + ':' + localPort);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/SOCKS5Server.java

    r5f01796 r981737f  
    481481    private I2PSocket outproxyConnect(I2PSOCKSTunnel tun, String proxy) throws IOException, I2PException {
    482482        Properties overrides = new Properties();
    483         overrides.setProperty("option.i2p.streaming.connectDelay", "1000");
     483        overrides.setProperty("option.i2p.streaming.connectDelay", "200");
    484484        I2PSocketOptions proxyOpts = tun.buildOptions(overrides);
    485485        Destination dest = _context.namingService().lookup(proxy);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/TunnelConfig.java

    r5f01796 r981737f  
    931931        updateTunnelQuantities(config);
    932932        if (_connectDelay)
    933             config.setProperty("option.i2p.streaming.connectDelay", "1000");
     933            config.setProperty("option.i2p.streaming.connectDelay", "500");
    934934        else
    935935            config.setProperty("option.i2p.streaming.connectDelay", "0");
  • apps/i2ptunnel/jsp/editClient.jsi

    r5f01796 r981737f  
    320320        </tr>
    321321<%
    322             if (!"streamrclient".equals(tunnelType)) {
     322            if ("client".equals(tunnelType)) {
    323323%>
    324324        <tr>
     
    341341        </tr>
    342342<%
    343             } // !streamrclient
     343            } // client
    344344
    345345            if (!editBean.isRouterContext()) {
Note: See TracChangeset for help on using the changeset viewer.