Changeset 6ed329d for core


Ignore:
Timestamp:
Nov 12, 2016 6:07:20 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
35548ff
Parents:
2c65173
Message:

I2CP: Reduce log level of error when session closed
while signing leaseset (ticket #1606)

File:
1 edited

Legend:

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

    r2c65173 r6ed329d  
    1010 */
    1111
     12import java.io.EOFException;
    1213import java.security.GeneralSecurityException;
    1314import java.util.Map;
     
    186187            session.propogateError("Error signing the leaseSet", dfe);
    187188        } catch (I2PSessionException ise) {
    188             session.propogateError("Error sending the signed leaseSet", ise);
     189            if (session.isClosed()) {
     190                // race, closed while signing leaseset
     191                // EOFExceptions are logged at WARN level (see I2PSessionImpl.propogateError())
     192                // so the user won't see this
     193                EOFException eof = new EOFException("Session closed while signing leaseset");
     194                eof.initCause(ise);
     195                session.propogateError("Session closed while signing leaseset", eof);
     196            } else {
     197                session.propogateError("Error sending the signed leaseSet", ise);
     198            }
    189199        }
    190200    }
Note: See TracChangeset for help on using the changeset viewer.