http-client-branch: review comment: HTTP/1.1 Publisher should publish WHILE there is demand and outgoing
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Exchange.java Sun Dec 03 22:34:23 2017 +0300
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Exchange.java Sun Dec 03 20:56:29 2017 +0000
@@ -557,7 +557,7 @@
return;
}
debug.log(Level.DEBUG, () -> "hasOutgoing = " + hasOutgoing());
- if (hasOutgoing() && demand.tryDecrement()) {
+ while (hasOutgoing() && demand.tryDecrement()) {
DataPair dp = getOutgoing();
if (dp.throwable != null) {