forked from I2P_Developers/i2p.i2p
* I2CP: Reduce log level when outbound queue is full (ticket #758)
This commit is contained in:
@ -56,7 +56,7 @@ import net.i2p.util.SimpleTimer;
|
||||
* @author jrandom
|
||||
*/
|
||||
class ClientConnectionRunner {
|
||||
private final Log _log;
|
||||
protected final Log _log;
|
||||
protected final RouterContext _context;
|
||||
private final ClientManager _manager;
|
||||
/** socket for this particular peer connection */
|
||||
|
@ -5,6 +5,7 @@ import net.i2p.data.i2cp.I2CPMessageException;
|
||||
import net.i2p.internal.I2CPMessageQueue;
|
||||
import net.i2p.internal.QueuedI2CPMessageReader;
|
||||
import net.i2p.router.RouterContext;
|
||||
import net.i2p.util.Log;
|
||||
|
||||
/**
|
||||
* Zero-copy in-JVM.
|
||||
@ -67,8 +68,8 @@ class QueuedClientConnectionRunner extends ClientConnectionRunner {
|
||||
// with non-blocking writes for the router
|
||||
// and blocking writes for the client?
|
||||
boolean success = queue.offer(msg);
|
||||
if (!success)
|
||||
throw new I2CPMessageException("I2CP write to queue failed");
|
||||
if (!success && _log.shouldLog(Log.WARN))
|
||||
_log.warn("I2CP write to queue failed: " + msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user