src/java.net.http/share/classes/jdk/internal/net/http/SocketTube.java
branchhttp-client-branch
changeset 56345 eb72d194235c
parent 56335 7e56c39fa1fa
child 56355 bf89fba643d9
--- a/src/java.net.http/share/classes/jdk/internal/net/http/SocketTube.java	Thu Mar 22 16:13:36 2018 +0000
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/SocketTube.java	Fri Mar 23 18:01:52 2018 +0000
@@ -305,8 +305,10 @@
 
         @Override
         public void onNext(List<ByteBuffer> bufs) {
-            assert current == null; // this is a queue of 1.
-            assert subscription != null;
+            assert current == null : dbgString() // this is a queue of 1.
+                    + "w.onNext current: " + current;
+            assert subscription != null : dbgString()
+                    + "w.onNext: subscription is null";
             current = bufs;
             tryFlushCurrent(client.isSelectorThread()); // may be in selector thread
             // For instance in HTTP/2, a received SETTINGS frame might trigger