Changeset 66bbe21


Ignore:
Timestamp:
Aug 18, 2014 6:57:19 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
33b7f08d
Parents:
51995cc
Message:
  • Tunnels: Use consistent tunnel pair for Delivery Status Message to reduce network connections (ticket #1350)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r51995cc r66bbe21  
     12014-08-18 zzz
     2 * i2psnark:
     3   - Don't send HTML-only headers for icons
     4   - Catch IllegalStateException for icons
     5 * Tunnels: Use consistent tunnel pair for Delivery Status Message
     6   to reduce network connections (ticket #1350)
     7
    182014-08-15 zzz
    29 * Console: Escaping fix (ticket #1348)
  • router/java/src/net/i2p/router/RouterVersion.java

    r51995cc r66bbe21  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 5;
     21    public final static long BUILD = 6;
    2222
    2323    /** for example "-test" */
  • router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java

    r51995cc r66bbe21  
    730730     */
    731731    private TunnelInfo selectInboundTunnel() {
    732         return getContext().tunnelManager().selectInboundTunnel(_from.calculateHash());
     732        // Use tunnel EP closest to his hash, as a simple cache to minimize connections
     733        return getContext().tunnelManager().selectInboundTunnel(_from.calculateHash(), _to.calculateHash());
    733734    }
    734735   
  • router/java/src/net/i2p/router/tunnel/InboundMessageDistributor.java

    r51995cc r66bbe21  
    161161            // ok, they want us to send it remotely, but that'd bust our anonymity,
    162162            // so we send it out a tunnel first
    163             TunnelInfo out = _context.tunnelManager().selectOutboundTunnel(_client);
     163            // TODO use the OCMOSJ cache to pick OB tunnel we are already using?
     164            TunnelInfo out = _context.tunnelManager().selectOutboundTunnel(_client, target);
    164165            if (out == null) {
    165166                if (_log.shouldLog(Log.WARN))
Note: See TracChangeset for help on using the changeset viewer.