Changeset 826d8ca for core/java


Ignore:
Timestamp:
Feb 18, 2018 1:53:50 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a5ca936
Parents:
acebd2e
Message:

i2ptunnel: Retry accept after router soft restart (ticket #2003)
This sends the router restart indication from I2CP router side
to client side to streaming to I2PTunnelServer via
a new streaming exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/impl/DisconnectMessageHandler.java

    racebd2e r826d8ca  
    3131            _log.debug("Handle message " + message);
    3232        String reason = ((DisconnectMessage)message).getReason();
    33         session.propogateError(reason, new I2PSessionException("Disconnect Message received"));
     33        session.propogateError(reason, new I2PSessionException("Disconnect Message received: " + reason));
    3434        session.destroySession(false);
    3535        if (reason.contains("restart")) {
     
    4848
    4949        public void run() {
    50             try { Thread.sleep(10*1000); } catch (InterruptedException ie) {}
     50            try { Thread.sleep(40*1000); } catch (InterruptedException ie) {}
    5151            _session.reconnect();
    5252        }
Note: See TracChangeset for help on using the changeset viewer.