Changeset 380f55a for core


Ignore:
Timestamp:
Feb 15, 2017 5:48:47 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3f452c5
Parents:
8a89b3d
Message:

I2CP: Return null on decompression failure instead of
throwing exception, to reduce the impact, for example
in iMule which is apparently closing the session (ticket #1915)

File:
1 edited

Legend:

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

    r8a89b3d r380f55a  
    324324                return DataHelper.decompress(compressed);
    325325            } catch (IOException ioe) {
    326                 throw new I2PSessionException("Error decompressing message", ioe);
     326                //throw new I2PSessionException("Error decompressing message", ioe);
     327                if (_log.shouldWarn())
     328                    _log.warn("Error decompressing message", ioe);
     329                return null;
    327330            }
    328331        }
Note: See TracChangeset for help on using the changeset viewer.