placeholder for overload detection

This commit is contained in:
jrandom
2004-07-06 14:30:52 +00:00
committed by zzz
parent fa4f100705
commit 49090014cc

View File

@ -47,6 +47,10 @@ public class HandleTunnelCreateMessageJob extends JobImpl {
public void runJob() {
if (_log.shouldLog(Log.DEBUG)) _log.debug("Handling tunnel create");
if (isOverloaded()) {
sendReply(false);
return;
}
TunnelInfo info = new TunnelInfo(_context);
info.setConfigurationKey(_message.getConfigurationKey());
info.setEncryptionKey(_message.getTunnelKey());
@ -78,6 +82,11 @@ public class HandleTunnelCreateMessageJob extends JobImpl {
}
}
private boolean isOverloaded() {
// hmmm....
return false;
}
private class TestJob extends JobImpl {
private TunnelInfo _target;
public TestJob(TunnelInfo target) {