--- 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