* I2CP: Reduce log level when outbound queue is full (ticket #758)

This commit is contained in:
zzz
2012-10-31 16:09:28 +00:00
parent 8a7d119962
commit a5b68d4fb0
2 changed files with 4 additions and 3 deletions

View File

@ -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 */

View File

@ -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);
}
}