I2CP Multisession - Work in progress:

Fix sending CreateSessionMessage for subsession
New AliasedTunnelPool for subsessions, don't reuse TunnelPool,
so it has its own settings
Fix addAlias()
Simplify refreshSettings()
Send status message on subsession create failure
Fix settings for subsession
This commit is contained in:
zzz
2015-04-19 01:32:30 +00:00
parent 57b641bf63
commit be8f7f9676
6 changed files with 206 additions and 33 deletions

View File

@ -647,6 +647,8 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
// now send CreateSessionMessages for all subsessions, one at a time, must wait for each response
synchronized(_subsessionLock) {
for (SubSession ss : _subsessions) {
if (_log.shouldLog(Log.INFO))
_log.info(getPrefix() + "Connecting subsession " + ss);
_producer.connect(ss);
}
}

View File

@ -114,7 +114,8 @@ class SubSession extends I2PSessionMuxedImpl {
*/
@Override
public boolean isClosed() {
return getSessionId() == null || _primary.isClosed();
// FIXME
return /* getSessionId() == null || */ _primary.isClosed();
}
/**