remove some remnants of the pre-0.6.1.30 tunnel build method
This commit is contained in:
@ -362,10 +362,10 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
|||||||
return new TunnelGatewayMessage(context);
|
return new TunnelGatewayMessage(context);
|
||||||
case DataMessage.MESSAGE_TYPE:
|
case DataMessage.MESSAGE_TYPE:
|
||||||
return new DataMessage(context);
|
return new DataMessage(context);
|
||||||
case TunnelCreateMessage.MESSAGE_TYPE:
|
//case TunnelCreateMessage.MESSAGE_TYPE:
|
||||||
return new TunnelCreateMessage(context);
|
// return new TunnelCreateMessage(context);
|
||||||
case TunnelCreateStatusMessage.MESSAGE_TYPE:
|
//case TunnelCreateStatusMessage.MESSAGE_TYPE:
|
||||||
return new TunnelCreateStatusMessage(context);
|
// return new TunnelCreateStatusMessage(context);
|
||||||
case TunnelBuildMessage.MESSAGE_TYPE:
|
case TunnelBuildMessage.MESSAGE_TYPE:
|
||||||
return new TunnelBuildMessage(context);
|
return new TunnelBuildMessage(context);
|
||||||
case TunnelBuildReplyMessage.MESSAGE_TYPE:
|
case TunnelBuildReplyMessage.MESSAGE_TYPE:
|
||||||
|
@ -18,8 +18,8 @@ import net.i2p.data.i2np.DatabaseLookupMessage;
|
|||||||
import net.i2p.data.i2np.DatabaseSearchReplyMessage;
|
import net.i2p.data.i2np.DatabaseSearchReplyMessage;
|
||||||
import net.i2p.data.i2np.DeliveryStatusMessage;
|
import net.i2p.data.i2np.DeliveryStatusMessage;
|
||||||
import net.i2p.data.i2np.I2NPMessage;
|
import net.i2p.data.i2np.I2NPMessage;
|
||||||
import net.i2p.data.i2np.TunnelCreateMessage;
|
//import net.i2p.data.i2np.TunnelCreateMessage;
|
||||||
import net.i2p.data.i2np.TunnelCreateStatusMessage;
|
//import net.i2p.data.i2np.TunnelCreateStatusMessage;
|
||||||
import net.i2p.data.i2np.TunnelDataMessage;
|
import net.i2p.data.i2np.TunnelDataMessage;
|
||||||
import net.i2p.data.i2np.TunnelGatewayMessage;
|
import net.i2p.data.i2np.TunnelGatewayMessage;
|
||||||
import net.i2p.util.I2PThread;
|
import net.i2p.util.I2PThread;
|
||||||
@ -74,7 +74,7 @@ public class InNetMessagePool implements Service {
|
|||||||
_context.statManager().createRateStat("inNetPool.dropped", "How often do we drop a message", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("inNetPool.dropped", "How often do we drop a message", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("inNetPool.droppedDeliveryStatusDelay", "How long after a delivery status message is created do we receive it back again (for messages that are too slow to be handled)", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("inNetPool.droppedDeliveryStatusDelay", "How long after a delivery status message is created do we receive it back again (for messages that are too slow to be handled)", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("inNetPool.duplicate", "How often do we receive a duplicate message", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("inNetPool.duplicate", "How often do we receive a duplicate message", "InNetPool", new long[] { 60*1000l, 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("inNetPool.droppedTunnelCreateStatusMessage", "How often we drop a slow-to-arrive tunnel request response", "InNetPool", new long[] { 60*60*1000l, 24*60*60*1000l });
|
//_context.statManager().createRateStat("inNetPool.droppedTunnelCreateStatusMessage", "How often we drop a slow-to-arrive tunnel request response", "InNetPool", new long[] { 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("inNetPool.droppedDbLookupResponseMessage", "How often we drop a slow-to-arrive db search response", "InNetPool", new long[] { 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("inNetPool.droppedDbLookupResponseMessage", "How often we drop a slow-to-arrive db search response", "InNetPool", new long[] { 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("pool.dispatchDataTime", "How long a tunnel dispatch takes", "Tunnels", new long[] { 10*60*1000l, 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("pool.dispatchDataTime", "How long a tunnel dispatch takes", "Tunnels", new long[] { 10*60*1000l, 60*60*1000l, 24*60*60*1000l });
|
||||||
_context.statManager().createRateStat("pool.dispatchGatewayTime", "How long a tunnel gateway dispatch takes", "Tunnels", new long[] { 10*60*1000l, 60*60*1000l, 24*60*60*1000l });
|
_context.statManager().createRateStat("pool.dispatchGatewayTime", "How long a tunnel gateway dispatch takes", "Tunnels", new long[] { 10*60*1000l, 60*60*1000l, 24*60*60*1000l });
|
||||||
@ -125,8 +125,8 @@ public class InNetMessagePool implements Service {
|
|||||||
|
|
||||||
if (invalidReason != null) {
|
if (invalidReason != null) {
|
||||||
int level = Log.WARN;
|
int level = Log.WARN;
|
||||||
if (messageBody instanceof TunnelCreateMessage)
|
//if (messageBody instanceof TunnelCreateMessage)
|
||||||
level = Log.INFO;
|
// level = Log.INFO;
|
||||||
if (_log.shouldLog(level))
|
if (_log.shouldLog(level))
|
||||||
_log.log(level, "Duplicate message received [" + messageBody.getUniqueId()
|
_log.log(level, "Duplicate message received [" + messageBody.getUniqueId()
|
||||||
+ " expiring on " + exp + "]: " + messageBody.getClass().getName() + ": " + invalidReason
|
+ " expiring on " + exp + "]: " + messageBody.getClass().getName() + ": " + invalidReason
|
||||||
@ -195,10 +195,10 @@ public class InNetMessagePool implements Service {
|
|||||||
_log.warn("Dropping unhandled delivery status message created " + timeSinceSent + "ms ago: " + messageBody);
|
_log.warn("Dropping unhandled delivery status message created " + timeSinceSent + "ms ago: " + messageBody);
|
||||||
_context.statManager().addRateData("inNetPool.droppedDeliveryStatusDelay", timeSinceSent, timeSinceSent);
|
_context.statManager().addRateData("inNetPool.droppedDeliveryStatusDelay", timeSinceSent, timeSinceSent);
|
||||||
}
|
}
|
||||||
} else if (type == TunnelCreateStatusMessage.MESSAGE_TYPE) {
|
//} else if (type == TunnelCreateStatusMessage.MESSAGE_TYPE) {
|
||||||
if (_log.shouldLog(Log.INFO))
|
// if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Dropping slow tunnel create request response: " + messageBody);
|
// _log.info("Dropping slow tunnel create request response: " + messageBody);
|
||||||
_context.statManager().addRateData("inNetPool.droppedTunnelCreateStatusMessage", 1, 0);
|
// _context.statManager().addRateData("inNetPool.droppedTunnelCreateStatusMessage", 1, 0);
|
||||||
} else if (type == DatabaseSearchReplyMessage.MESSAGE_TYPE) {
|
} else if (type == DatabaseSearchReplyMessage.MESSAGE_TYPE) {
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Dropping slow db lookup response: " + messageBody);
|
_log.info("Dropping slow db lookup response: " + messageBody);
|
||||||
|
@ -123,6 +123,7 @@ public class MessageHistory {
|
|||||||
* @param replyTunnel the tunnel sourceRoutePeer should forward the source routed message to
|
* @param replyTunnel the tunnel sourceRoutePeer should forward the source routed message to
|
||||||
* @param replyThrough the gateway of the tunnel that the sourceRoutePeer will be sending to
|
* @param replyThrough the gateway of the tunnel that the sourceRoutePeer will be sending to
|
||||||
*/
|
*/
|
||||||
|
/********
|
||||||
public void requestTunnelCreate(TunnelId createTunnel, TunnelId outTunnel, Hash peerRequested, Hash nextPeer, TunnelId replyTunnel, Hash replyThrough) {
|
public void requestTunnelCreate(TunnelId createTunnel, TunnelId outTunnel, Hash peerRequested, Hash nextPeer, TunnelId replyTunnel, Hash replyThrough) {
|
||||||
if (!_doLog) return;
|
if (!_doLog) return;
|
||||||
StringBuilder buf = new StringBuilder(128);
|
StringBuilder buf = new StringBuilder(128);
|
||||||
@ -137,6 +138,7 @@ public class MessageHistory {
|
|||||||
buf.append("who forwards it through [").append(replyTunnel.getTunnelId()).append("] on [").append(getName(replyThrough)).append("]");
|
buf.append("who forwards it through [").append(replyTunnel.getTunnelId()).append("] on [").append(getName(replyThrough)).append("]");
|
||||||
addEntry(buf.toString());
|
addEntry(buf.toString());
|
||||||
}
|
}
|
||||||
|
*********/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The local router has received a request to join the createTunnel with the next hop being nextPeer,
|
* The local router has received a request to join the createTunnel with the next hop being nextPeer,
|
||||||
@ -148,6 +150,7 @@ public class MessageHistory {
|
|||||||
* @param ok whether we will join the tunnel
|
* @param ok whether we will join the tunnel
|
||||||
* @param sourceRoutePeer peer through whom we should send our garlic routed ok through
|
* @param sourceRoutePeer peer through whom we should send our garlic routed ok through
|
||||||
*/
|
*/
|
||||||
|
/*********
|
||||||
public void receiveTunnelCreate(TunnelId createTunnel, Hash nextPeer, Date expire, boolean ok, Hash sourceRoutePeer) {
|
public void receiveTunnelCreate(TunnelId createTunnel, Hash nextPeer, Date expire, boolean ok, Hash sourceRoutePeer) {
|
||||||
if (!_doLog) return;
|
if (!_doLog) return;
|
||||||
StringBuilder buf = new StringBuilder(128);
|
StringBuilder buf = new StringBuilder(128);
|
||||||
@ -158,6 +161,7 @@ public class MessageHistory {
|
|||||||
buf.append("ok? ").append(ok).append(" expiring on [").append(getTime(expire.getTime())).append("]");
|
buf.append("ok? ").append(ok).append(" expiring on [").append(getTime(expire.getTime())).append("]");
|
||||||
addEntry(buf.toString());
|
addEntry(buf.toString());
|
||||||
}
|
}
|
||||||
|
*********/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The local router has joined the given tunnel operating in the given state.
|
* The local router has joined the given tunnel operating in the given state.
|
||||||
|
Reference in New Issue
Block a user