forked from I2P_Developers/i2p.i2p
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)
This commit is contained in:
@ -323,7 +323,10 @@ class I2PSessionImpl2 extends I2PSessionImpl {
|
||||
try {
|
||||
return DataHelper.decompress(compressed);
|
||||
} catch (IOException ioe) {
|
||||
throw new I2PSessionException("Error decompressing message", ioe);
|
||||
//throw new I2PSessionException("Error decompressing message", ioe);
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Error decompressing message", ioe);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return compressed;
|
||||
|
Reference in New Issue
Block a user