Changeset 380f55a


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)

Files:
3 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        }
  • history.txt

    r8a89b3d r380f55a  
    112017-02-15 zzz
     2 * Build: Fix calls to Class.newInstance() deprecated in Java 9
     3 * I2CP: Return null on decompression failure instead of
     4   throwing exception (ticket #1915)
    25 * Utils: Disable caching of ResettableGZIPOutputStreams,
    36   add more checks for compression failure,
  • router/java/src/net/i2p/router/RouterVersion.java

    r8a89b3d r380f55a  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 7;
     21    public final static long BUILD = 8;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.