http-client-branch: add temporary debug logging to SubscriberWrapper demand http-client-branch
authorchegar
Fri, 02 Mar 2018 10:18:48 +0000
branchhttp-client-branch
changeset 56225 348ae78efb60
parent 56224 87781d9c4996
child 56227 278e1c6c3e99
http-client-branch: add temporary debug logging to SubscriberWrapper demand
src/java.net.http/share/classes/jdk/internal/net/http/common/SubscriberWrapper.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/common/SubscriberWrapper.java	Fri Mar 02 10:15:15 2018 +0000
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/common/SubscriberWrapper.java	Fri Mar 02 10:18:48 2018 +0000
@@ -320,6 +320,8 @@
     void upstreamWindowUpdate() {
         long downstreamQueueSize = outputQ.size();
         long n = upstreamWindowUpdate(upstreamWindow.get(), downstreamQueueSize);
+        logger.log(Level.DEBUG, "upstreamWindowUpdate, downstreamQueueSize:%d, upstreamWindow:%d",
+                downstreamQueueSize, upstreamWindow.get());
         if (n > 0)
             upstreamRequest(n);
     }