Improved logging.
This commit is contained in:
parent
62effb73d3
commit
442a7ce8cc
|
@ -139,13 +139,13 @@ public abstract class AbstractFlowControlStrategy implements FlowControlStrategy
|
||||||
{
|
{
|
||||||
int oldSize = session.updateRecvWindow(-length);
|
int oldSize = session.updateRecvWindow(-length);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data received, updated session recv window {} -> {} for {}", oldSize, oldSize - length, session);
|
LOG.debug("Data received, {} bytes, updated session recv window {} -> {} for {}", length, oldSize, oldSize - length, session);
|
||||||
|
|
||||||
if (stream != null)
|
if (stream != null)
|
||||||
{
|
{
|
||||||
oldSize = stream.updateRecvWindow(-length);
|
oldSize = stream.updateRecvWindow(-length);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data received, updated stream recv window {} -> {} for {}", oldSize, oldSize - length, stream);
|
LOG.debug("Data received, {} bytes, updated stream recv window {} -> {} for {}", length, oldSize, oldSize - length, stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,13 +111,13 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
||||||
level = sessionLevel.getAndSet(0);
|
level = sessionLevel.getAndSet(0);
|
||||||
session.updateRecvWindow(level);
|
session.updateRecvWindow(level);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data consumed, updated session recv window by {}/{} for {}", level, maxLevel, session);
|
LOG.debug("Data consumed, {} bytes, updated session recv window by {}/{} for {}", length, level, maxLevel, session);
|
||||||
windowFrame = new WindowUpdateFrame(0, level);
|
windowFrame = new WindowUpdateFrame(0, level);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data consumed, session recv window level {}/{} for {}", level, maxLevel, session);
|
LOG.debug("Data consumed, {} bytes, session recv window level {}/{} for {}", length, level, maxLevel, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
Frame[] windowFrames = Frame.EMPTY_ARRAY;
|
Frame[] windowFrames = Frame.EMPTY_ARRAY;
|
||||||
|
@ -126,7 +126,7 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
||||||
if (stream.isClosed())
|
if (stream.isClosed())
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data consumed, ignoring update stream recv window by {} for closed {}", length, stream);
|
LOG.debug("Data consumed, {} bytes, ignoring update stream recv window for closed {}", length, stream);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -140,7 +140,7 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
||||||
level = streamLevel.getAndSet(0);
|
level = streamLevel.getAndSet(0);
|
||||||
stream.updateRecvWindow(level);
|
stream.updateRecvWindow(level);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data consumed, updated stream recv window by {}/{} for {}", level, maxLevel, stream);
|
LOG.debug("Data consumed, {} bytes, updated stream recv window by {}/{} for {}", length, level, maxLevel, stream);
|
||||||
WindowUpdateFrame frame = new WindowUpdateFrame(stream.getId(), level);
|
WindowUpdateFrame frame = new WindowUpdateFrame(stream.getId(), level);
|
||||||
if (windowFrame == null)
|
if (windowFrame == null)
|
||||||
windowFrame = frame;
|
windowFrame = frame;
|
||||||
|
@ -150,7 +150,7 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Data consumed, stream recv window level {}/{} for {}", level, maxLevel, stream);
|
LOG.debug("Data consumed, {} bytes, stream recv window level {}/{} for {}", length, level, maxLevel, stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue